V
Vinay S
Hi,
I have a ActiveX control. I have a couple of methods exposed.
When I try to invoke these methods using Javascript, I get an Error
Message : "Unexpected call to method or property access"
This works fine if I embed the ActiveX as an object.5
My code is as below:
<!-- This code works -->
<OBJECT CLASSID="CLSID:BEF77186-6Q43-4E21-B1F1-52AF55F55559"
ID="MyActiveX1" ></OBJECT>
<script>
if (MyActiveX1 != null)
MyActiveX1.isLoaded() ;
</script>
<!-- This code fails -->
<script>
var MyActiveX1 = new ActiveXObject("MyLib.MyObj.1") ;
if (MyActiveX1 != null)
MyActiveX1.isLoaded() ; // <-- this is where it fails...
</script>
Please let me know where I am going wrong.
Any hints would be useful.
Thanks and regards,
Vinay
I have a ActiveX control. I have a couple of methods exposed.
When I try to invoke these methods using Javascript, I get an Error
Message : "Unexpected call to method or property access"
This works fine if I embed the ActiveX as an object.5
My code is as below:
<!-- This code works -->
<OBJECT CLASSID="CLSID:BEF77186-6Q43-4E21-B1F1-52AF55F55559"
ID="MyActiveX1" ></OBJECT>
<script>
if (MyActiveX1 != null)
MyActiveX1.isLoaded() ;
</script>
<!-- This code fails -->
<script>
var MyActiveX1 = new ActiveXObject("MyLib.MyObj.1") ;
if (MyActiveX1 != null)
MyActiveX1.isLoaded() ; // <-- this is where it fails...
</script>
Please let me know where I am going wrong.
Any hints would be useful.
Thanks and regards,
Vinay