Hi all,

Sorry if this is the wrong group for this.  I'm using embedded Mozilla
from Java via the Eclipse SWT browser package, through which I can get
a native nsIDOMWindow pointer if need be.

The basic problem I need to solve is this:
1) Have a globally accessible object implemented in Java (like IE's
window.external).
2) Create new JavaScript methods from Java and invoke them, marshalling
arguments appropriately.
3) Expose my own Java Objects in a sort of IDispatch style to
JavaScript, allowing callbacks in a constrained manner.

What I want to know is what technology I should be using.  I've gotten
dizzy reading through the maze of somewhat related techologies, all
which do a lot more than and not quite what I need them to.  I've read
about LiveConnect, Javaconnect, XPConnect, Blackwood, JRex... the list
goes on.

Can anyone point me in the right direction?  The APIs I've seen which
seem most appealing are the JSObject style APIs, but I'm not writing an
applet-- my Java code is on the outside of the embedded Mozilla, not
the inside, and I'm not sure how to turn an nsIDOMWindow into an
JSContext, whatever that is.

Thanks!
Scott

_______________________________________________
mozilla-embedding mailing list
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to