Thanks for the instruction, Chris.
It seems that hacking the codes in mozilla into Java will take me a
long time as the time I spent on IE. Hard time coding....
Christophe Cornu wrote:
Hi Janychee,
You can add your vote to the
following
feature request:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=57477
If you want to hack something
yourself,
here are a few hints. You need to start from the internal Browser
field:
nsIWebBrowser webBrowser. Investigate nsIWebBrowser.GetContentDOMWindow
as described in <mozilla
source>/dist/include/webbrwsr/nsIWebBrowser.h
. From there you get the nsIDOMWindow object and can call GetDocument
to
retrieve the nsIDOMDocument. You need to add your own binding to call
these
objects - if you are familiar with COM, you will find some similarities
with XPCOM.
Chris
In Applet, user can use netscape._javascript_.JSObject
to
access the HTML's DOM.
With IE, I know how to access HTML's DOM through ActiveX's COM
mechanism.
But with Mozilla, I know little about XPCOM.
Can I use similar mechanism of Live Connect to access the HTML's DOM in
the SWT's Browser widget? Or just modifying some few lines of Java code
in the package netscape._javascript_.JSObject?
_______________________________________________
platform-swt-dev
mailing list platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
|