
September 19th, 2002, 10:36 PM
|
|
Contributing User
|
|
Join Date: Jan 2002
Location: Seattle WA
Posts: 863
  
Time spent in forums: 22 sec
Reputation Power: 13
|
|
|
Adding events to an object model exposed to Explorer
Hi all,
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...
Code:
<SCRIPT for="window.external.something" event="onSomethingImportant">
// Quick, do something important!
</SCRIPT>
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?
|