[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Accessing the DOM of a SWT Browser

Hi Olivier,

To access the DOM without using JavaXPCOM you need to execute/evaluate _javascript_.  For examples of this see:

http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet308.java?view=co
http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet159.java?view=co
http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet303.java?view=co (note that this example should use a BrowserFunction to call back into java rather than setting window.status)

There's also a feature request for java interfaces to do this directly, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=57477 .

Grant