Skip to main content



      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 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 03:31 Go to previous messageGo to next message
Eclipse UserFriend
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 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:Getting Started
Next Topic:[CSS] How to import another css into my theme?
Goto Forum:
  


Current Time: Wed Jul 23 00:36:20 EDT 2025

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

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

Back to the top