determining when an applet is running via javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David Haga

    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.

  • Martin Honnen

    #2
    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="appletNam e"
    you can check
    if (document.apple ts && document.applet s.appletName &&
    document.applet s.appletName.is Active()) {
    ...
    }
    --

    Martin Honnen


    Comment

    • Tim Van Wassenhove

      #3
      Re: determining when an applet is running via javascript

      On 2003-11-21, Martin Honnen <mahotrash@yaho o.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="appletNam e"
      > you can check
      > if (document.apple ts && document.applet s.appletName &&
      > document.applet s.appletName.is Active()) {
      > ...
      > }[/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

      Comment

      Working...