- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hopefully someone can point me in the right direction :-)
I have two machines, machine 1 OS = Windows 10, machine 2 OS = Debian
setInterval() / clearInterval() works fine on the Windows 10 machine.
On Debian setInterval() works, but clearInterval() does not stop the timer.
Same code used on both machines.
Any suggestions appreciated.
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you sure the timer_id you are passing to clearInterval() is the one you got from setInterval()?
My guess is that your code is making a mistake and isn't passing the right timer id. Or, maybe you are calling setInterval() more than once?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the response Chris - I've checked and double checked, believe me, definately the correct variable, and calling setInterval() only once - as mentioned the identical code works fine under Windows 10.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page