[thelist] Actual Ajax question WAS: AJAX only mailing list
Anthony Baratta
anthony at baratta.com
Wed Jul 11 22:48:10 CDT 2007
Brent Eades wrote:
> I'm with you there. Which leads to a question :) How does one tell the
> XMLhttpRequest object to turn the hell off, once it's retrieved the
> content it was instructed to?
You need to turn off the timer:
setInterval("updateInfo()", 3000);
by using
clearInterval();
But in order to so this you need the handle of the timer you set:
objTimer = setInterval("updateInfo()", 3000);
...blah blah blah...
clearInterval(objTimer );
More info:
http://msdn2.microsoft.com/en-us/library/ms536749.aspx
More information about the thelist
mailing list