Auto-refresh tag
1 posts in topic
Flat View  Flat View

Posted By:   Denis_2chin
Posted On:   Monday, February 19, 2007 04:10 AM

I need a tree where some nodes can reload by timer. Do you know any solutions?

Re: Auto-refresh tag

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 . :-)
About | Sitemap | Contact