Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Trigger UI update with javascript
Trigger UI update with javascript [message #987675] Tue, 27 November 2012 14:33 Go to next message
Eclipse UserFriend
Is it possible to trigger a UI update via javascript? If yes, how can we
achive this?
We do not want to register a global UICallback and for our need we
already trigger a ServiceHandler via javascript but aufter that call we
need to always refresh the UI.
Re: Trigger UI update with javascript [message #987797 is a reply to message #987675] Wed, 28 November 2012 08:31 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1295
Registered: July 2009
Senior Member

Hi Markus,

Yes, you can, using internal JavaScript API. In RAP 2.0, call:

rwt.remote.Server.getInstance().send();

In 1.5, it should have been:

org.eclipse.swt.Request.getInstance().send();

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Trigger UI update with javascript [message #987839 is a reply to message #987797] Wed, 28 November 2012 10:58 Go to previous message
Eclipse UserFriend
Cool, thanks, That works.

Am 28.11.2012 09:31, schrieb Ralf Sternberg:
> Hi Markus,
>
> Yes, you can, using internal JavaScript API. In RAP 2.0, call:
>
> rwt.remote.Server.getInstance().send();
>
> In 1.5, it should have been:
>
> org.eclipse.swt.Request.getInstance().send();
>
> Regards, Ralf
>
Previous Topic:Missing focusLost when keyboard-triggering default button
Next Topic:Use BrowserHistory for Favourites
Goto Forum:
  


Current Time: Fri Dec 19 07:15:05 GMT 2014

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

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