I have developed an ActiveX control as an OCX component and I register it with regsvr32 in client side. I have developed a local server (e.g tomcat) that when the user connects to it, first of all I want the server to detect whether the user which is connecting with IE browser has already registered the OCX or not. I am looking for such a code written in java script. As I searched, I found this code but when calling navigator.plugins.length 0 is returned and no plugin is detected (although I can call the OCx by its UID in javascript. Is there any code to detect whether an OCX component is registered in IE. furthermore when I open the "manage add-on" in IE, I can not see my OCX there. why is it like that? Best Regards.
Asked
Active
Viewed 140 times
0
-
How exactly do you “call the OCX by its UID in JavaScript”? – Sebastian Simon Dec 20 '15 at 06:06
-
– nafise shakiba Dec 20 '15 at 06:25
-
That doesn’t really look like JavaScript. – Sebastian Simon Dec 20 '15 at 06:33
-
I call it in javascript as : var result=MyActiveX1.add(2,3); – nafise shakiba Dec 20 '15 at 06:46
-
Alright, so what if you check for the existence of `MyActiveX1` — `if(MyActiveX1){/* it is installed */}else{/* it’s not installed */}`? – Sebastian Simon Dec 20 '15 at 06:53
-
Dear @ Xufox since MyactiveX is an object, the below statement is always true, even though I call myactiveX1 object with a wrong classID. – nafise shakiba Dec 20 '15 at 07:02