Connecting Tech Pros Worldwide Help | Site Map

determining when an applet is running via javascript

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 20th, 2005, 12:01 PM
David Haga
Guest
 
Posts: n/a
Default determining when an applet is running via javascript

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.


  #2  
Old July 20th, 2005, 12:01 PM
Martin Honnen
Guest
 
Posts: n/a
Default 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/

  #3  
Old July 20th, 2005, 12:01 PM
Tim Van Wassenhove
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.