Objects in scripts...

Posted by Shadowfyr on Mon 07 Jun 2004 04:16 AM — 1 posts, 5,605 views.

USA #0
Also.. I finally came across this:

http://www.windevnet.com/documents/s=7640/wdj0110c/0110c.htm

and

ftp://ftp.wdj.com/pub/2001/oct2001.zip

You will probably need to register to read the article and download the source. (hopefully I got the issue number and year right..)

It is a special type of object that will register any object with full COM support (not requiring .tbl files) so that it will call an event handler for the object within the script itself. Basically, it does what GetRef *should* have done, if MS wasn't so paranoid about non-DHTML objects.

In any case, I haven't yet taken a close look at how it works, but it may be possible to adapt it to a internal class or object in Mushclient, which would provide a direct way to do the same thing. If not, then it would be mildly inconvenient to make someone download a version of this tool to get events from objects to work right. It would be better, if possible, to let the client provide it though imho.