By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,255 Members | 1,701 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,255 IT Pros & Developers. It's quick & easy.

determining when an applet is running via javascript

P: n/a
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.

Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a


David Haga wrote:
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()) {
...
}
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2

P: n/a
On 2003-11-21, Martin Honnen <ma*******@yahoo.de> wrote:


David Haga wrote:
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()) {
...
}


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.

--
verum ipsum factum
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.