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

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 ShanmugamFriend
Messages: 275
Registered: July 2009
Location: India
Senior Member

Did you look at BrowserFunction, it provides a way to call Java from JavaScript?
Pls see example snippet -->

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

Current Time: Wed Apr 25 14:42:57 GMT 2018

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

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