Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to execute JavaScript using JavaXPCOM?

2 views
Skip to first unread message

Nabor Gilgald

unread,
Apr 16, 2007, 7:20:54 AM4/16/07
to
Hello,

I'm using the xulrunner 1.8.1.3 within an Java Application.
The Java library for xulrunner is quit big, but without an API or some
good examples not very useful.
I can walk through the DOM. That works fine after understanding it :).
Is there a way to invoke JavaScript functions from the current
nsIDOMWindow, nsIDOMDocument or other XPCOM Objects?
I can invoke JavaScript from my Java Instance of the Mozilla Browser but
that is not very useful, because every time I've to care about frameset
or iframe structures. It would be much better to invoke a JavaScript in
the right context (frame)...

Regards
Martin

198...@gmail.com

unread,
Apr 18, 2007, 2:27:32 AM4/18/07
to
On Apr 16, 7:20 pm, Nabor Gilgald <nabor.gilga...@gmx.de> wrote:
> Hello,
>
> I'm using the xulrunner 1.8.1.3 within an Java Application.
> The Java library for xulrunner is quit big, but without an API or some
> good examples not very useful.
> I can walk through the DOM. That works fine after understanding it :).
> Is there a way to invokeJavaScriptfunctions from the current

> nsIDOMWindow, nsIDOMDocument or other XPCOM Objects?
> I can invokeJavaScriptfrom my Java Instance of the Mozilla Browser but

> that is not very useful, because every time I've to care about frameset
> or iframe structures. It would be much better to invoke aJavaScriptin
> the right context (frame)...
>
> Regards
> Martin

Maybe you can send out a custom event from your XPCOM to the window.
And at the same time, add an eventlistener to the custom event to
the window.

0 new messages