Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Browser + JavaScript + Notification Event
Browser + JavaScript + Notification Event [message #503135] Fri, 11 December 2009 03:13 Go to next message
Walter Mising name is currently offline Walter Mising nameFriend
Messages: 128
Registered: July 2009
Senior Member
I have a Browser widget which renders a HTML. The HTML contains a Button and calls a JavaScript when Clicked.

How can the JavaScript notify or invoke Browser widget's method or its Parent's Method.

Thanks,
- Walter
Re: Browser + JavaScript + Notification Event [message #503167 is a reply to message #503135] Fri, 11 December 2009 09:10 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You can inject JS-Functions into the SWT-Browser widget (in 3.5.0) using
BrowserFunction and call it from your JS-Code.

This how the PDE-Editor in e4-0.9 works, so checkout the code there.

Tom

Am 11.12.09 04:13, schrieb Walter:
> I have a Browser widget which renders a HTML. The HTML contains a
> Button and calls a JavaScript when Clicked.
>
> How can the JavaScript notify or invoke Browser widget's method or its
> Parent's Method.
>
> Thanks,
> - Walter
>
Previous Topic:Somthing is missing in the "New and Noteworthy".
Next Topic:Browser + JavaScript + Notification Event
Goto Forum:
  


Current Time: Fri Apr 19 10:46:37 GMT 2024

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

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

Back to the top