ajax - Load data to an open modal - bootstrap twitter -
there input field , href inside modal. href points phpfile, same file modal implemented, load data database , put result input field.
the problem when pressing href modal disappear , nothing happen.
i know there maybe way load data ajax while modal still open have no idea how it.
here code far:
trigger:
<!-- trigger --> <a href="#setupmodal" data-toggle="modal">open modal</a>
modal:
<!-- modal box --> <div id="setupmodal" class="modal hide fade"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3>modal header</h3> </div> <div class="modal-body"> <input type="text" name="inputtext"/> </div> <a href="test.php?getconfig=1">get current configuration</a> <div class="modal-footer"> <button class="btn" data-dismiss="modal">close</button> </div>
Comments
Post a Comment