[flexcoders] Catch Browser Exit with Flex

2008-07-30 Thread gjessup1
I'm having some issues with catching a browser exit with firefox. I can get it to work with IE (not exactly how I'd like, but it works). Does anyone have a good working example available...here is my code if you can help from that. Thanks Greg My javascript looks like this: script

RE: [flexcoders] Catch Browser Exit with Flex

2008-07-30 Thread Alex Harui
There have been past threads on this, and no perfect solution. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gjessup1 Sent: Wednesday, July 30, 2008 11:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Catch Browser Exit

Re: [flexcoders] Catch Browser Exit with Flex

2008-07-30 Thread Rick Winscot
Here is a script that works on most OS/Browsers... Drop in and enjoy! if ( window.Event ) {window.onbeforeunload = function( event ) {return confirmClose( event );}} else {window.onbeforeunload = function() { return confirmClose(

Re: [flexcoders] Catch Browser Exit with Flex

2008-07-30 Thread Rick Winscot
Sorry for the mess on the last send... Whew! Here is a script that works on most OS/Browsers... Drop in and enjoy! if ( window.Event ) { window.onbeforeunload = function( event ) { return confirmClose( event ); } } else {