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 09:33 Go to next message
Eclipse User
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 03:31 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
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 05:58 Go to previous message
Eclipse User
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 Aug 22 23:38:57 EDT 2014

Powered by FUDForum. Page generated in 0.01966 seconds