The following HTML object represents an ActiveX control that has a property called SubSystemA:
<object id="MainObject" CLASSID="CLSID:2C327457-D12F-4FC4-BFC2-D7C029003D07" width="0px" height="0px" > <embed name="MainObject"></embed> </object>
SubSystemA is a COM object that implements some interface with methods, properties, and events. SubSystemA methods and properties can easily be called from Javascript, but since SubSystemA is a MainObject property, I'm not sure how to attach an event handler to SubSystemA events.
I know two ways to handle events triggered by MainObject:
<script type="text/javascript"> function MainObject::SomeMainEvent(arg1, arg2) { </script>
and
<script type="text/javascript" for="MainObject" event="SomeMainEvent(arg1, arg2)"> </script>
But how would I handle the event for MainObject.SubSystemA?
source share