[Javascript] Detecting ActiveX control

Matt Barton javascript at mattbarton.org
Wed Jan 3 07:42:37 CST 2007


Many thanks,  I'll give it a spin.

Mike Dougherty wrote:
> On Wed, 03 Jan 2007 13:13:46 +0000
>  Matt Barton <javascript at mattbarton.org> wrote:
>> I have a custom ActiveX control which is running in my intranet app 
>> (target browser is only Win IE5.5+).
>>
>> Is there any way for me to detect, in javascript, if the control is 
>> accessible by the browser?
>>
>> I find my users often have IE security settings which prevent the 
>> control from running, and this causes a javascript runtime error: 
>> "Object doesn't support this property or method".
> 
> try {
>   var myobj = (your object);
>   }
> catch(e){
>   //appropriate error response
>   }




More information about the Javascript mailing list