Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Destroying an Applet ?

 
Waqas Tariq
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

Scenario:
I have an applet running on HTML page. The applet execution in the method is in a loop. So, applet loads in windows processes list and doestn't stop working even , after the browser has been closed.

Problem:
Tell me any javascript function, which i call and applet execution is stopped/destroyed.

Best Regards,
Waqas Tariq Dar
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should put code in the "stop" method that causes the loop in the start method to terminate. And, of course, the start method should not be long-running; it should terminate quickly. If you need to keep code running, start a thread.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic