Folks, We have an application that keeps internal state that the user must manually save to the server (when they're happy with it).
It would be nice if the application could intercept actions that would unload the app (e.g. hitting the back button, going to a new URL), and say "hey... you have unsaved changes, do you want to save them?" Is this possible? How would I go about this? Another complication is that if this is possible and they user says yes, the app needs to stay alive long enough to send the changes to the server and make sure they got there OK. Any suggestions would be much appreciated. Reid

