Hi all, sorry in advance I'm a very beginner so I'm not very familiar
with all XPCOM mechanisms.
Actually I'm using an ActiveX to implement a bi-directional
communication:

HTML-JavaScript->ActiveX (Calling method of the object)
ActiveX->JavaScript-HTML (Triggering events caught by JavaScript)

I would like to achieve the same thing using an XPCOM component. I've
been able to figure how to write a component using C++, this one is
implementing some method that I'm able to call from JavaScript. But
I'm still missing the way to communicate from my XPCOM to my
JavaScript.

Using the search tool I've read several threads talking about this
subject but I haven't be able to clearly understand how to do what I
want to do:

·       The NPN_GetURL() is requiring a NPP instance, and I can't figure
how to get it
·       DOM Events or PL_Events. What's the difference? Is it suitable
for what I want to do? Where I need to implement it in my component so
it can "listen" to an event?

I hope I've been clear enough, thank you in advance for your help!

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to