[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: SWT HTML browser component

Samuel Cheung wrote:
Thanks.
But I am looking for a way to walk thru the dom in my JavaApplication not just using JavaScript.

http://jrex.mozdev.org/ can do that but it's not an SWT widget and it seemed unstable last time I tried it.

Let's say I want my JavaApplication to display all the Forms name in the html page I load using SWT html browser. How can I achieve that?

You could wrap a minimal JavaScript implementation into your own Java set/query API. Finding forms and collecting their names could still be quite efficient while exporting the whole DOM tree this way might be a bit slow.

Thank you.

Henning Rogge wrote:

Samuel Cheung wrote:

In SWT, there is a HTML browser component. Can someone please tell me if I can walk thru the dom in my Java application which uses that HTML browser component?

Look at http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/dev.html#snippets



The "browser" snipplets might be usefull for you.

Henning.