javascript - calling remote div using bootstrap modal -
i have lot of time trying call remote div using bootstrap's modals when call remote file, calls full page, , need div remote page
what can do... here litte piece of code i'm using call remote page
<!-- menu list --> <li class="left"><a href="register.php" data-toggle="modal" data-target="#basicmodal"><?php echo $lg["sign_up"]; ?></a></li>
and here remote page:
<html> <head> <title><?php echo $lg["name"]; ?></title> <!-- header links --> <?php require("includes/inc.headerlinks.php"); ?> </head> <body> <!-- our beautiful menu bar --> <?php require("frames/frame.topbar.php"); ?> <div class="wrapper"> <div id="body"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> <h4 class="modal-title" id="mymodallabel">modal title</h4> </div> <div class="modal-body"> <h3>modal body</h3> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">close</button> <button type="button" class="btn btn-primary">save changes</button> </div> </div> </div> </body> </html>
an example, when go http://www.mercadolibre.com.ve/ , click on "inscribete" brings div remote page (not full page), want.
Comments
Post a Comment