looka
02-01-2005, 08:05 PM
i have a function, which i would like to repeat with setinterval until some conditions are set.
myinterval = window.setInterval('myfunction();if(condition)window.cancelInterval(how)',tout);
okay, the question would be how can i pass the variable myinterval in that cancelinterval? or is any other way to get the intiger which leads to interval's canceling?
myinterval = window.setInterval('myfunction();if(condition)window.cancelInterval(how)',tout);
okay, the question would be how can i pass the variable myinterval in that cancelinterval? or is any other way to get the intiger which leads to interval's canceling?