September 19th, 2002, 11:36 PM
Adding events to an object model exposed to Explorer
I have a application that hosts an Explorer instance, and exposes an object model interface through the browser's document.external pointer. It works great, got a heirarchy of object methods.
Anyone have a clue how to 'register' events with the browser though? That way the user could write something like...
I figure I could just save an IHTMLScriptElement* interface pointer for the relevant script nodes...but I'm at a loss for how to execute the script in the node when needed. Furthermore...there has to be another way?
<SCRIPT for="window.external.something" event="onSomethingImportant">
// Quick, do something important!