Is the JavaScript notation <script event="myATLObjEvent" for="myATLObj"> still valid?
I'm concerned with capturing a ActiveX events in web page JavaScript hosted in IE7, IE8 and IE9.
The reason I ask is VS2008/VS2010 show a green squiggle below the = that follow keywords event and for. Hovering the mouse pointer over the green squiggle I see "Expected '('". So I'm wondering; is this still the proper approach? If not, can anyone provide a simple example of the proper approach. Thank you;
More details:
I've created an ActiveX object using ATL: myATLObj. It generates an event: myATLObjEvent.
The ActiveX object is embedded in the web page using the HTML object tag...
<object id="myATLObj" classid="CLSID:A99BC87C-94C3-40B3-C2E1-2154554A3A54" height="32" width="32"></object>
Back in the days of IE5 and IE6 I would handle events generated by the ActiveX object (myATLObj) using JavaScript like this...
<script language="javascript" id="myATLOBJEventHandlerID" event="myATLObjEvent(myATLObjEventParameters)" for="myATLObj">
alert("myATLObjEvent fired with parameters: " + myATLObjEventParameters);
</script>
Thanks again
Tech_Net_User