U
UJ
I've got a page where users can make changes (enable and disable some
checkboxes.) I need to have it so that if they have made changes and go away
from the page, they will get prompted if they want to lose their changes
before the changes are actually saved. So I've got code that adds a
javascript window.confirm on unload to stop them. Problem is, the check
boxes are run at the server which means whenever somebody clicks one, the
page thinks it's unloading to it prompts them which isn't what I want. I
only want them to be prompted when they are going elsewhere.
Anybody have any suggestions on what I can do to fix this?
TIA - Jeffrey.
checkboxes.) I need to have it so that if they have made changes and go away
from the page, they will get prompted if they want to lose their changes
before the changes are actually saved. So I've got code that adds a
javascript window.confirm on unload to stop them. Problem is, the check
boxes are run at the server which means whenever somebody clicks one, the
page thinks it's unloading to it prompts them which isn't what I want. I
only want them to be prompted when they are going elsewhere.
Anybody have any suggestions on what I can do to fix this?
TIA - Jeffrey.