nk wrote:
> I have written a C++ XPCOM object. I would like to call a javascript
> function from this object which is defined in html page hosting XPCOM
> object.
>
> In other words, I am looking for something equivalent to the following
> in IE
> pIHTMLWindow->execScript(bstrScript,NULL,&vtResult);
>
> where bstrScript could have any JavaScript code.
This is a good question for the embedding newsgroup, I think. The
evaluate-script methods in nsIScriptContext are the closest things I can
think of, but I am not up on the latest thinking in how to expose them
via embedding APIs. Jud, vidur: any hope?
/be