Hi,
As i said i want to do a bi-directional communication between my gtk
interface and the javascript of an html page. I notice that this html page
is embed in my gtk app by using gtk moz embeddind.
I mean that i want to call C functions from javascript and vice versa.
i.e: JSfunctions() ---call--> Cfunctions ()
Cfunctions () ---call--> JSfunctions()
I looked at http://www.mozilla.org/scriptable/, and i think using XPCOM and
XPConnect is the best way to do that. I'll try to pick some code code from
sample in http://lxr.mozilla.org/seamonkey/source/xpcom/sample/
Thanks fo your help Doug
Doug Turner wrote:
> I don't really understand what you are trying to do. Try to take a look
> at http://www.mozilla.org/scriptable/. This might do everything you need.
>
> If you want to so something like actually call a js function from C, you
> can look at the xpinstall code
>
> http://lxr.mozilla.org/seamonkey/source/xpinstall/.
>
> Here we push objects directly into the javascript namespace. However,
> this isn't for the weak of heart; I would suggest sticking to the
> scriptable components.
>
> Regards,
> Doug Turner
_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding