Re: [flexcoders] Re: warning on 'back' button before closing application?

2009-01-14 Thread Maciek Sakrejda
y already doing some other cleanup with that handler, so hopefully this should be straightforward. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: jim.abbott45 Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: warn

[flexcoders] Re: warning on 'back' button before closing application?

2009-01-14 Thread jim.abbott45
Your other choice is to have your entire application opened in a new, separate browser window, but with the browser 'chrome' & history turned off. In that case, users cannot accidentally navigate away from the application, because there _is no_ navigation history to begin with. Of course not everyo

[flexcoders] Re: warning on 'back' button before closing application?

2009-01-14 Thread Anthony DeBonis
Yes it is possible but you need some JavaScript You can create a js include file or put this in your wrapper template file. The idea is to put a event listener on the onbeforeunload function. I have tested this in a few more common browsers and it works. window.onbeforeunload = warnOfUnsa