Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » HTML5 support for SWTBrowser
HTML5 support for SWTBrowser [message #907739] Tue, 04 September 2012 08:12 Go to next message
Sumy Joseph is currently offline Sumy Joseph
Messages: 15
Registered: July 2009
Junior Member
Hello All,

Does html5 function postmessage() is supported by SWTBrowser widget ?
Is there a way to add a listener to it which can handle the message event .

Thanks,
Sumy
Re: HTML5 support for SWTBrowser [message #911545 is a reply to message #907739] Tue, 11 September 2012 20:44 Go to previous message
Grant Gayed is currently offline Grant Gayed
Messages: 2151
Registered: July 2009
Senior Member
The Browser supports whatever HTML capabilities its native renderer
supports. For instance, I've verified that postMessage() works if a
Browser's underlying renderer is XULRunner 10 (corresponds to Firefox
10). However this would not work if the renderer was XULRunner 1.9.x or
IE9.

For an example of adding a JS listener to a Browser that notifies the
java side when it is invoked see
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet362.java
..

Grant


On 9/4/2012 4:12 AM, Eclipse Developer wrote:
> Hello All,
>
> Does html5 function postmessage() is supported by SWTBrowser widget ?
> Is there a way to add a listener to it which can handle the message event .
>
> Thanks,
> Sumy
Previous Topic:Accessibility for SWT and JFACE widgets
Next Topic:DoubleClick with key pressing on viewer
Goto Forum:
  


Current Time: Wed Oct 01 08:11:57 GMT 2014

Powered by FUDForum. Page generated in 0.01843 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software