Revision: 43162
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 18, 2011 02:21 by mariraj
Initial Code
<html> <head> <!-- For ease i'm just using a JQuery version hosted by JQuery- you can download any version and link to it locally --> <script src="jquery-1.3.2.min.js"></script> <script> $(document).ready(function() { $("#responsecontainer").load("response.php"); var refreshId = setInterval(function() { $("#responsecontainer").load('response.php?randval='+ Math.random()); }, 9000); }); </script> </head> <body> <div id="responsecontainer"> </div> </body> -------------------------------- response.php : <? echo rand(); ?>
Initial URL
Initial Description
Initial Title
Auto refresh div using jquery
Initial Tags
Initial Language
PHP