Verify current interval value?

J

jdog

I have a script that I believe is refusing to clear the interval. I
prefer to do the troubleshooting myself as part of the learning
process, but have been unable to find a way of checking the current
interval value.

I'd like to be able to validate the setting and clearing of the
interval. Something like:
a = setInterval('someFunction()', someInterval);
interval_set = getInterval(a);
clearInterval(a);
interval_cleared = getInterval(a);
Unfortunately getInterval doesn't exist. Any ideas?


Any ideas?
 
M

Michael Winter

I have a script that I believe is refusing to clear the interval. I
prefer to do the troubleshooting myself as part of the learning process,
but have been unable to find a way of checking the current interval
value.

You can't. You'll have to check the value passed for the second argument.

If you can't seem to solve the problem, post a short example (preferably a
link to a small page that demonstrates the problem).

[snip]

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top