Hi All,
I come to you in need of help. If anyone could help me out, I'd greatly appreciate it.
Problem:
When I click "End", it doesn't destroy (lack of a better word) the setTimeout function.
You'll notice the json file is called, at some point 6 times
Note:
I left a console.log in the code to show you the issue I speak of (so ensure you have your console open).
Requirements:
By default the json file should load once, then upon clicking "Start", the json file needs to be called (every x secs) until "End" is clicked (in which case the polling will stop).
URL:
http://coopersemantics.com/code/poller.html





Reply With Quote

Bookmarks