Posted By:
Anonymous
Posted On:
Sunday, March 4, 2007 10:18 AM
If you want to reload the whole page after a particular time-out, then the code snippet in the head tag of the page would be something like this....
where 20 is your reload seconds.
OR if you want to fire an AJAX request to the server to get the data and reload the page using JavaScript.. then your thing would be...
window.setInterval( funcName, 5000 );
here funcName -> Name of the javascript function which is to be called for each timeout milli-seconds
and 5000 -> Timeout milli seconds
Now in the function with the name funcName, write the code to send an AJAX request to the server to fetch the data you want in the format you need it . :-)