I have a query but im not going to paste any code, so I would be gratefull for what little help anyone can offer.
Ive have written a dhtml dom script, that interfaces with my main xhtml script by calling methods and passing indexes, these methods use clearInterval() and clearTimeout() to stop the script and restart it based on the new indexes.
The problem I am getting is if your quick you can trigger the method repeatidly and even though the code is logically written, you can get it to initiate more lines of processing (or trains of thought if you get my meaning) and it cartwheels away into madness getting faster.
What I need ideally is a method called stopEverything() that just stops all javascript processing straight away so that incase some get through without the intervals being cleared it wont matter cos the next call to stop everything will still stop the previous paths of processing but there doesnt seem to be any suitable in built functionality for such.
Is there a way to do this? I already have my interval variables accessable to all methods and it works well enough to be used because it only breaks if you be an ass with it but I would like it to be perfect.
Waylander.