sarakwok
10-17-2005, 03:07 PM
Hi,
In my javascript I starts a java timer to run a job. The user can click a "stop" button on my page to end the job (I would call timer.cancel) But if the user clicks the "x" button on the browser I have no way to cancel that java timer (basically I can't go to the class that I constructed the timer) and the job would keep running until I shutdown my web server. Is there anyway to hard kill all the java processes when user closes the browser? Any idea would be very much appreciated.
Sarah
In my javascript I starts a java timer to run a job. The user can click a "stop" button on my page to end the job (I would call timer.cancel) But if the user clicks the "x" button on the browser I have no way to cancel that java timer (basically I can't go to the class that I constructed the timer) and the job would keep running until I shutdown my web server. Is there anyway to hard kill all the java processes when user closes the browser? Any idea would be very much appreciated.
Sarah