Hello!
I'm writing a plugin for Netscape. Because LiveConnect is no longer
supported, I'm using XPConnect.
I know how to call my C++ methods from javaScript (it already works well).
But how to call javaScript _from_ C++?
Because I have already written an ActiveX control for IExplorer, which fires
events, I have written javaScript in HTML like this:
<SCRIPT LANGUAGE="JavaScript" FOR="MyObject" EVENT="OnSomething(SomeValue)">
// do something
</SCRIPT>
So, how to call this "OnSomething" event (or even some function) from
Netscape's plugin? I read a lot of documentation, but didn't find anything
useful. I don't know which interface to use and where to get it (maybe
NPN_GetValue?).
Thanks,
Sergej Marsnjak