Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to programatically close current tab?(How to programatically close current tab?)
How to programatically close current tab? [message #518055] Tue, 02 March 2010 21:44 Go to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: December 2009
Junior Member
I have a need to programmatically close the tab RAP application is running rather than navigate to somewhere else.

Can someone provide a hint on how to do this? I have been looking around but could not find any doc on this issue.
Re: How to programatically close current tab? [message #518181 is a reply to message #518055] Wed, 03 March 2010 11:28 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
you may use a browser widget that contains a minimal HTML page with a
link that executes Javascript to close the window/tab.

The FAQ lists several articles that show how to send Javascript from the
server along with a response [1]. If the browsers security settings
don't prevent the code from being executed, this may be an alternative way.

HTH
Rüdiger

[1]
http://wiki.eclipse.org/RAP/FAQ#Restarting_the_session_and_p assing_the_new_locale_as_a_parameter
--
Rüdiger Herrmann
http://eclipsesource.com

On 02.03.2010 22:44, erickingus@yahoo.com wrote:
> I have a need to programmatically close the tab RAP application is
> running rather than navigate to somewhere else.
>
> Can someone provide a hint on how to do this? I have been looking around
> but could not find any doc on this issue.
Previous Topic:Spring DM
Next Topic:How to send JS Code from one session to another through JSWriter?
Goto Forum:
  


Current Time: Thu Oct 10 16:51:11 GMT 2024

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

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

Back to the top