Confirm on window close *only* and minimizing a window
Posted on 2008-06-13
Hi... this is only my second question on this site so I hope I'm doing all the right things!
I've built an application to help people fill out timesheets on a corporate intranet. It works fine although there are two finishing touches I would like to add to make it usable by staff generally. I can't find any way to do them so I thought I'd ask the experts!
Now comes the *really* tricky bit. I want to have it so that the window presents a confirmation message when that minimized window is closed, to prevent someone closing the window accidentally. Because that minimized window refreshes itself periodically and spawns a popup, none of the usual ways of doing this will work -- they kick in when you navigate away from a page (close or click on a link or generate popup etc). I want a confirm dialogue to appear ONLY when the window is closed and at no other time.
If it's any help the application does make use of JQuery, although I couldn't see a way to do these things in that either.
I'm assigning this 500 points not because it's especially urgent (although I'd like to be able to put in production in early July) but because I think it's very difficult -- but maybe it's impossible or really simple, I dunno! :-)