W
Weston Weems
Ok,
I've posted on this before, lemme give you guys the run
down. I've got an asp form that has postbacks etc. I'd
like it so that when navigating away from it, It'll prompt
user for save confirmation.
So I've got <body onUnLoad="CheckConfirm();">
The javascript method fires off, and I've got no question
if I could call a remote scripting method to trigger a
save.
My problem is that a postback fires off the javascript
unload event. I tried checking document.location.href, but
thats prior to hitting the button, and being that its not
the new destination url, its more or less impossible to
ignore postbacks.
Anyone found a work around? I dont want to save every
postback, or prompt for a save. (doing so could publically
publish information that could possibly not be ready for
publics eyes)
Thank you very much for the time.
Weston Weems
I've posted on this before, lemme give you guys the run
down. I've got an asp form that has postbacks etc. I'd
like it so that when navigating away from it, It'll prompt
user for save confirmation.
So I've got <body onUnLoad="CheckConfirm();">
The javascript method fires off, and I've got no question
if I could call a remote scripting method to trigger a
save.
My problem is that a postback fires off the javascript
unload event. I tried checking document.location.href, but
thats prior to hitting the button, and being that its not
the new destination url, its more or less impossible to
ignore postbacks.
Anyone found a work around? I dont want to save every
postback, or prompt for a save. (doing so could publically
publish information that could possibly not be ready for
publics eyes)
Thank you very much for the time.
Weston Weems