Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Java<-->JavaScript - window.external
Java<-->JavaScript - window.external [message #897632] Tue, 24 July 2012 20:13 Go to next message
Jay Ashworth is currently offline Jay AshworthFriend
Messages: 1
Registered: July 2012
Junior Member
Hello,

We're trying to do a Java integration with a web application that requires Internet Explorer (so, we're targeting only Windows). We're looking at using SWT to house the native browser component.

Part of the integration requires that we be able to register some bridge style functions (JavaScript functions that will callback to our Java application) to the 'window.external' space. Does SWT already register some functions to window.external (it seemed like 'callJava' was)? Is this capability extensible by library users through an API, or does it require modifying the native interface? If we were to write a JNI component to register these functions, could it still work in conjunction with SWT? If so, how?

If you know of any documents or examples that could help us with this task, that would be appreciated.

Thanks for your time.
Re: Java<-->JavaScript - window.external [message #899051 is a reply to message #897632] Mon, 30 July 2012 11:08 Go to previous message
Lakshmi P ShanmugamFriend
Messages: 279
Registered: July 2009
Location: India
Senior Member
Hi,

Did you look at BrowserFunction, it provides a way to call Java from JavaScript?
Pls see example snippet --> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet307.java


Lakshmi P Shanmugam
Previous Topic:SWT multiline table with rows of different sizes
Next Topic:SWT an xulrunner
Goto Forum:
  


Current Time: Sat Apr 20 02:58:00 GMT 2024

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

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

Back to the top