jennyw
2005-Nov-11 01:16 UTC
(kind of OT) Equivalent to onunload or onbeforeunload in Safari?
I realize this isn''t specifically a Rails question, but I figure others here will have encountered it. I have a client that wants form data to be saved when leaving a page. This could include leaving a page by following a link, closing a window, or pressing the back or forwards buttons. So ... I do some research, and found this Web page: http://www.4guysfromrolla.com/webtech/100604-1.shtml which describes using onbeforeunload to show a confirmation (I''m doing a form submit, so it seems like onunload would work, too). This works in Firefox and IE. Safari, however, blithely ignores this. I know a lot of Rails developers are Mac users so I was hoping someone knows of a solution to this issue? FYI, I tried Safari 2.02 on Tiger. Thanks! Jen
Apparently Analagous Threads
- Using .onUnload to unload DLLs
- Using .onUnload() to unload compiled code
- Scriptaculous Help (page exit effects)
- 7 commits - configure.ac libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/trace
- How to do package cleanup: hooks .onUnload, R_unload_mylib, .onDetach are not called on quit