SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist Alluvian's Avatar
    Join Date
    Jan 2007
    Location
    Orlando, FL
    Posts
    417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to detect if a java applet has loaded properly (and display it only if loaded)

    Okay, I have an interesting textbox applet on this page that lets the user dynamically filter a list via keywords to quickly find 1 title from a large list of titles.
    http://www.thebrasse.com/lotro/index2.php

    A few problems though:
    1) Sometimes it gets stupid and won't load for no apparent reason and gives me a red x.
    2) other users may not have javascript or java enabled. In this case I want to show them a non-java selection that will do the job in a pinch.


    The logical plan seems to be to display the non-java solution, in a page that looks like this:
    http://www.thebrasse.com/lotro/

    And have the applet loading in place but hidden from view. Then, when it properly loads up, hide the non-java solution and display the funky java applet.

    I can probably figure out the hidden not hidded stuff, but I have no idea how to determine in javascript if a java applet has properly loaded or not.

    Would it need a time delay as well? Would the onload event trigger before the java applet has loaded fully even in the best case scenario?


    So I need to know how to detect when the applet has loaded. Any suggestions on a better way to do this would be welcome as well. I am a little concerned that the page will load up with the non-java version, sit there a few seconds and then suddenly flip to the java version and confuse and disorient users (who may already be typing in the non-java dropdown list)

  2. #2
    SitePoint Evangelist Alluvian's Avatar
    Join Date
    Jan 2007
    Location
    Orlando, FL
    Posts
    417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    /bump

    Any way to do this? If it is too much desciption to type out, is there a good site someone could point me too with a few pointers on what to search for?

    I don't mind doing the searching or figuring stuff out on my own (I have answered most questions I have posted to this forum no my own anyway) but I have not met with any success on this item yet.


Bookmarks

Posting Permissions

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