Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeeder.ewetel.de!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <3672281.3Po27QccK0@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Sat, 01 Dec 2012 17:12:52 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 47 NNTP-Posting-Date: 01 Dec 2012 17:12:55 CET NNTP-Posting-Host: 5dfd8728.newsspool1.arcor-online.net X-Trace: DXC=gf8>:QMlE`cJ00P1S40fZgic==]BZ:afn4Fo<]lROoRankgeX?EC@@`>68l:SlOMReDZm8W4\YJNlR=i2=[N6Y6jIm]j4fT[DOo\OB]Sm:GM=j X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:17398 JJ wrote: ^^ Who? > Cezary Tomczyk wrote: >> Not exactly refreshing the ActiveX installation. Just want to know when >> ActiveX installation is complete. > > That's same as checking whether the ActiveX control is fully loaded, > running, and ready. > > Since OBJECT tag doesn't support ONLOAD attribute, s/tag/element type/. It may not support the `onload' *attribute* (HTML5 WD and ED beg to differ [1, 2], and so do even non-HTML5 browsers even though it would be invalid markup then), but the element objects have supported the `onload' *property* for a long time (even before the W3C DOM [3]), and as a result the `load' event applies to it [4]. [1] [2] [3] [4] > you'll have to poll one of the control's property. If possible, don't. > For example, periodically check the "color" property until it's in the > form of a string. With error handlings of course, in case that property > doesn't exist yet. Meaning that the control isn't running yet. The API of plugins triggered by ActiveX controls/COM objects usually is encapsulated in another object accessible through a single property of the element object, so what you suggest is not likely. It might be possible to feature-test deep property access, but it is certainly better to let the control tell the embedding context when it is ready. PointedEars -- Prototype.js was written by people who don't know javascript for people who don't know javascript. People who don't know javascript are not the best source of advice on designing systems that use javascript. -- Richard Cornford, cljs,