Stop applet execution on load, pause/resume using javascript?

Posted by Zane on Stack Overflow See other posts from Stack Overflow or by Zane
Published on 2010-04-04T03:27:07Z Indexed on 2010/04/04 3:33 UTC
Read the original article Hit count: 365

Filed under:
|
|
|

I'm making something of a java applet gallery for my website (processing applets, if you're interested) and I'd like to keep the applets from running when the sit first loads. Then, when the appropriate button is clicked, a piece of javascript would tell the applet to continue execution until another button is pressed to stop it. I know that I can use appletName.start() and appletName.stop(), but it doesn't seem to work on load, at least not well. I'm using element.getElementsById( "applet" ) to get the applets to use the start and stop methods on. It slows Firefox to a crawl for some reason.

© Stack Overflow or respective owner

Related posts about java

Related posts about JavaScript