Using JavaScript to Handle ActiveX Events
-
I have an ActiveX grid control on one of my web pages that fires events when cells need updating. Is there a way to specify an event handler in JavaScript for these events? I've found plenty of examples of how to do it using vbscript but nothing for JavaScript. For example in vbscript if you want to add an event handler for an ActiveX object with an id called 'Grid' and an event called 'UpdateCell' then it seems you just create a subroutine called Grid_UpdateCell() on the page containing the object. Is there a way to do something similar in JavaScript? Regards Martin
-
I have an ActiveX grid control on one of my web pages that fires events when cells need updating. Is there a way to specify an event handler in JavaScript for these events? I've found plenty of examples of how to do it using vbscript but nothing for JavaScript. For example in vbscript if you want to add an event handler for an ActiveX object with an id called 'Grid' and an event called 'UpdateCell' then it seems you just create a subroutine called Grid_UpdateCell() on the page containing the object. Is there a way to do something similar in JavaScript? Regards Martin
i use something like this for an activex treeviewctrl function CheckChildren(ParentNode) { ... } // event handler that is called when the check state of a node changes // the handler propagates the new checkstate down the hierarchy CheckChildren(theNode); http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnclinic/html/scripting04092001.asp