javascript - Bootstrap 3 interactive remote modal -


i've php web application manage conversation between 2 users, recorded in mysql database. conversation handled controller php, stores messages in database, , invokes php template. in template i've modal this:

<div class="modal fade" id="mymodal" tabindex="-1" role="dialog" aria-labelledby="mymodallabel" aria-hidden="true">  <div class="modal-dialog">   <div class="modal-content">    <div class="modal-header">     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>     <h4 class="modal-title">data review</h4>     </div>    <div class="modal-body">       <! -- content here -->    </div>    <div class="modal-footer">      <button type="button" class="btn btn-default" data-dismiss="modal">close</button>     </div>   </div> </div> 

the modal opened automatically controller index.php, through this:

header('location: ./#mymodal'); 

and controller "pass" modal, message text , sender.

the problem every time user sends message, modal disappears , reappears, new message sent in conversation. possible avoid modal appear , disappear, , remain in foreground on page?

can me?

any suggestions appreciated :) thanks!

if reloading page, you're losing state. going need send messages via ajax, don't have page reload.

without knowing you're doing, , trying solve problem describing, maybe want have page reload modal invoked, it's open @ time of page load.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -