Refresh div using jQuery
-
Refreshing a div using jquery, homegrown code by Latox of Brisbane Website DesignRefreshing a Div using jQuery – the main index file
<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> </html>The php file
<? echo rand(); ?>
This could include just about anything, have a play. If you know php. You can have fun with this.
Author: Brisbane Web Developments
Coder: Latox
Download: jQuery Refresh (128)Related Posts:
- jQuery fancy Draggable Captcha
- Rounded Menu with CSS3 and jQuery
- timeAGO a jQuery plugin
- GoogleMap Markers jQuery from HTML list !
- jQuery Image Load
GD Star Rating
loading…








3 Responses and Counting...
Read Refresh <div> using jQuery now at http://bit.ly/cveVD7
Reply
loading...
Post updated August 12, 2010 – Refresh div using jQuery. Read it now at http://bit.ly/cveVD7
Reply
loading...
Would like to see more examples of this, and perhaps demo of image version please Latox.
loading...