Results 1 to 2 of 2
May 14, 2007, 08:56 #1
- Join Date
- Jan 2007
- Orlando, FL
- 0 Post(s)
- 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.
A few problems though:
1) Sometimes it gets stupid and won't load for no apparent reason and gives me a red x.
The logical plan seems to be to display the non-java solution, in a page that looks like this:
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.
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)