lundi 29 septembre 2014

bootstrap Modal popup does not appear in backbone.js


Vote count:

0




The modal popup just blinks, does not appear on screen. I have added bootstrap.min.js file inside the body tag in backbone.js view through javascript code by creating script tag. when i inspect through firebug does not appear inside the body tag.


The below code in backbone view folio page



html += "<img class='folio-thumb btn btn-primary btn-lg' data-toggle='modal' data-target='#myModal'/>";


The below code in backbone view preview page



var html = "<button class='btn btn-primary btn-lg' data-toggle='modal' data-target='#myModal'>Launch demo modal</button>";
html += "<div class='modal fade' id='myModal' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true'>";
html += "<div class='modal-dialog'>";
html += "<div class='modal-content'>";
html += "<div class='modal-header'>";
html += "<button type='button' class='close' data-dismiss='modal'><span aria-hidden='true'>&times;</span><span class='sr-only'>Close</span></button>";
html += "<h4 class='modal-title' id='myModalLabel'>Modal title</h4>";
html += "</div>";
html += "<div class='modal-body'>";
html += "<p>Launch Excellence is highly challenging in Pharmerging markets, and yet launching new innovative drugs is becoming a Pharmerging priority where multinationals must succeed. </p>";
html += "</div>";
html += "<div class='modal-footer'>";
html += "<button type='button' class='btn btn-default' data-dismiss='modal'>Close</button>";
html += "<button type='button' class='btn btn-primary'>Save changes</button>";
html += "</div>";
html += "</div>";
html += "</div>";
html += "</div>";


asked 32 secs ago







bootstrap Modal popup does not appear in backbone.js

Aucun commentaire:

Enregistrer un commentaire