I have a ajax javascript method that pulls data from a page etc.
I want this process to run on a timed interval, say every minute. But I don\'t want it to loop forev
Use setInterval, be sure to get a reference.
var X=setInterval(....);
Also, have a global counter
var c=0;
Inside the function called by the setIntervale do:
c++; if(c>3) window.clearInterval(X);