[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


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:


More information about the thelist mailing list