Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Browser Widget and Live Connect?


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



Janyckee Jozz <joo@xxxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

09/19/2004 12:49 PM

Please respond to
platform-swt-dev

To
platform-swt-dev@xxxxxxxxxxx
cc
Subject
[platform-swt-dev] Browser Widget and Live Connect?





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

Back to the top