How about something like this at the end of the page <script language="JavaScript1.2"> var aExists = 0; function checkForApplet(thisApplet) { if(aExists != 1) { if(thisApplet) { aExists = 1; break(); } } } </script> <script language="JavaScript1.2"> setInterval("checkForApplet('appletName')",3000); </script>
David DiPietro Systems Developer / Engineer OSU College of Medicine & Public Health Voice (614) 292-5960 Fax (614) 292-0745 -----Original Message----- From: Neil Clark - =TMM= [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 5:46 AM To: CF-Talk Subject: RE: Determining if a java applet has been loaded in JS? <sic> I am sure that there is nothing vanilla with .js and browser which uniquely identifies how much of the applet byte code has been loaded at the loading time of the applet. One solution would be to have two applets: one the continous progress bar applet, and the other the actual applet. Once the actual applet is loaded completely in the init() method of the applet you will have to communicate to the other progress bar applet that the actual applet is completely loaded and now it should stop showing the status "Loading completed.." The applet tag doesn't have an onLoad event handler, Its possible in Netscape provided you are willing to tweak the Java applet's code to call JavaScript using the JSObject of Netscape. Doesn't sound very practical to be of any use though. The JavaScript code can however look for the existence of the applets array. It gets populated when the applet is loaded. The JS code can poll for the loading status of the applet this way. But there's no event driven mechanism to achieve the same that I can think of. N ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists