we have a case where a java applet may take a few seconds to load, but need
to use JS to set/adjust the applet when the page loads.  We are finding that
sometimes the JS code will execute before the applet has been loaded,
therefore causing errors (cuz the applet doesn't exist yet).

We have toyed with the idea of building in a delay on our page before this
initialization code runs, but have decided that this is not a good idea.
How long should the delay be? What if the user is on a 28.8 modem? or a DSL
line? the delay would need to change.

So, we are looking for ideas/methods on how to check if the applet has
infact loaded before doing any processing.  We think something like:

if (document.all.AppletName) { do something }

But are not sure if this reference to the applet would cause an error if the
applet isn't loaded yet.

Are there any other methods? Thanks in Advance.

Shawn Grover

______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to