Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <b>
- <div id = "showMessages">
- <script src=http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
- function autoRefresh_div() {
- $("#showMessages").load("showMessages.php"); // a function which will load data from other file after x seconds
- alert("Auto-Refresh works fine");
- }
- setInterval('autoRefresh_div()', 5000); // refresh div after 5 secs
- </script>
- <?php include("showMessages.php"); ?>
- </div>
- </b><br>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement