Callbacks from COM objects in Jscript
We have a COM object sitting on a server. Interacting with the COM object
from Jscript involves passing a callback function for the COM object to use
when the request has been serviced. Problem is, the callback forms part of
a Jscript object and when the callback executes in the script the object's
'this' pointer is invalid.
Does anyone know enough about Jscript's use of IDispatch to understand why
this happens? Has anyone made this work properly? The only way we've yet
to make it work is using the parent component (htc) instead - but this isn't
a good solution since it would require changes to the server to tie up the
callback requests to the originating Jscript objects. Any ideas?
David Rigby