Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Browser window closed question

    I am a SmartGWT Power user and my question relates to closing browser windows. I know that the GWT Window object provides callbacks when windows are closed. Is there some way for me to connect that to the SmartGWT objects contained in that window? In my application, I need to free resources on my server based on the contents of the window being closed.

    Any help would be greatly appreciated.

    #2
    You can set a message that the user sees when trying to navigate away via the onCloseClick event, but there's no way to get a reliable server-side notification of window closure. Aside from the browser killing outstanding requests as the window is cleaned up, there's also network/browser/computer crashes. So you should architect your server code such that this notification is not required.

    Comment

    Working...
    X