determining when an applet is running via javascript

D

David Haga

How can I query an applet from Javascript to determine when it is
running? I need to start a second applet but only when I know the first
applet is completely loaded, initialized and executing.
 
M

Martin Honnen

David said:
How can I query an applet from Javascript to determine when it is
running? I need to start a second applet but only when I know the first
applet is completely loaded, initialized and executing.

I think applets have a method
isActive
so with
<applet name="appletName"
you can check
if (document.applets && document.applets.appletName &&
document.applets.appletName.isActive()) {
...
}
 
T

Tim Van Wassenhove

I think applets have a method
isActive
so with
<applet name="appletName"
you can check
if (document.applets && document.applets.appletName &&
document.applets.appletName.isActive()) {
...
}

There is no need for using JavaScript. Applets can see eachother in the
Virtual Machine. Example code can be foudn at sun's applets howto.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top