Roy Cohen wrote:
Setting open before onreadystatechange doesn't make much difference since onreadystatechange is only called upon server response, like a method to handle an event.
Kaustav Ganguly wrote:The setInterval method returns an interval ID , you need to use this interval ID toclear the interval , so the code is as follows
var intervalID = setInterval(.....);
to clear the interval you should use the interval ID as
clearInterval(intervalID)
try using the interval ID , the interval should be cleared.
Kaustav Ganguly wrote:Eric,
Could you please point out the line in the code where the interval ID returned by the setInterval method is stored and used afterwards to clear the interval ??
Roy Cohen wrote:
How did you exactly test the code ?
Roy Cohen wrote:
When you say you are able to run this code with no problem does it mean that the interval is being cleared for you?
Roy Cohen wrote:
Have you actually created a jsp to call?
Eric Pascarello wrote: You really should use a servlet and not a JSP.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |