Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Java<-->JavaScript - window.external
Java<-->JavaScript - window.external [message #897632] Tue, 24 July 2012 16:13 Go to next message
Eclipse UserFriend
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 07:08 Go to previous message
Eclipse UserFriend
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
Previous Topic:SWT multiline table with rows of different sizes
Next Topic:SWT an xulrunner
Goto Forum:
  


Current Time: Wed Jul 23 00:06:15 EDT 2025

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

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

Back to the top