Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Window Unload Event
Window Unload Event [message #103164] Tue, 26 August 2008 13:54 Go to next message
Tiago is currently offline TiagoFriend
Messages: 55
Registered: July 2009
Member
Hi,

I need to do something when the user closes the browser window. Is there
any way I can catch in RAP the browser onunload javascript event? I
tried to do it in a custom widget, but it's only called after rap is
destroyed.

Thanks

Tiago
Re: Window Unload Event [message #103600 is a reply to message #103164] Fri, 29 August 2008 19:13 Go to previous message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Hi Tiago,

there is no decent way to do this but there seems to be a
beforeunload event on the Javascript Window object. You may try to
listen to this event.
Be aware that this is a hack and might interfere with the event
listener that is registered by qooxdoo.

HTH
Rüdiger

Tiago wrote:
> Hi,
>
> I need to do something when the user closes the browser window. Is there
> any way I can catch in RAP the browser onunload javascript event? I
> tried to do it in a custom widget, but it's only called after rap is
> destroyed.
>
> Thanks
>
> Tiago
Previous Topic:strange message at start of app
Next Topic:Virtual Table page size.
Goto Forum:
  


Current Time: Fri Mar 29 06:05:12 GMT 2024

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

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

Back to the top