Results 1 to 1 of 1

Thread: Detedting the state of an Applet

  1. #1
    Join Date
    Nov 2002

    How to Detect the state of an Applet

    I am not relly familiar with javascript but I need it to run a web application hanging off a database. Within this application I have OnLoad code to do various things when a page is loaded. In some instances this code will call another page. Due to security issues I need to hit my database each time I call a new page so I have to run through the event broker applet.
    The problem is that in some cases the page may be loaded and will therefore trigger the onload code but the applet may not be ready and will therefore pop an error saying can't connect etc,. Is there any javascript function which can detect the state of an applet and tell the code whether its ready for use or not.
    Otherwise, I was wondering about the use of "try...catch" statement. Could this be used to try and perform the action involving the applet and if not ready use the catch to delay for x milliseconds and then run the command again. Can you only have one catch per try or could you keep repeating this procedure in a kind of a loop.

    Thanks. Any help will be appreciated
    Last edited by john s; 11-22-2002 at 02:38 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center