Connecting Tech Pros Worldwide Forums | Help | Site Map

determining when an applet is running via javascript

David Haga
Guest
 
Posts: n/a
#1: Jul 20 '05
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.


Martin Honnen
Guest
 
Posts: n/a
#2: Jul 20 '05

re: determining when an applet is running via javascript




David Haga wrote:
[color=blue]
> 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.[/color]

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/

Tim Van Wassenhove
Guest
 
Posts: n/a
#3: Jul 20 '05

re: determining when an applet is running via javascript


On 2003-11-21, Martin Honnen <mahotrash@yahoo.de> wrote:[color=blue]
>
>
> David Haga wrote:
>[color=green]
>> 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.[/color]
>
> 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()) {
> ...
> }[/color]

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
Closed Thread