The Prototype Ajax.PeriodicalUpdater object makes an Ajax.Updater request at regular intervals.
new Ajax.PeriodicalUpdater(container, url, options);
// make a HTTP request to the specified URL and update the 'container' element.
Note: to evaluate javascript responses set the ‘evalScripts’ option to ‘true’.
Also note that the Ajax.PeriodicalUpdater makes the HTTP request when it is first created, rather than waiting for the frequency time before making the first request.
Also see: Ajax.Updater
new Ajax.PeriodicalUpdater('mydiv', '/foo/bar', {asynchronous:true, frequency:2});
// make a HTTP request every 2 seconds to /foo/bar and update the 'mydiv' element.