PDA

View Full Version : Browser Close Event


Anil(aK)
11-18-2008, 05:42 AM
I have a doubt regarding capturing the browser close event in flex.In my application i have to delete a row from the table when the user closes his browser.I have captured the browser close event in flex and dispatched the event to delete the row from the table.In Mozilla firefox this is working fine but in the IE it not working.
Since it is not working in IE I have debugged the application by making IE as the default web browser. The event is dispatched from the Flex side but it is not able to connect with the CFC to need the appropriate.

Could you please help me to sort this out?

flywithoutwings
11-18-2008, 06:35 AM
try using onbeforeunload event if you're using onunload event to detect the closing of window..as onbeforeunload event is generated before the page is unloaded and the references to all the objects present in the window will still be available.

ljuwaidah
11-18-2008, 07:14 AM
Read this: http://www.flexer.info/2008/02/25/browser-window-close-event-and-flex-applications/