Re: Double click problem [SOLVED]
| From: | tedd | Date: | Sat, 22 Mar 2008 14:00:45 +0000 |
| Subject: | Re: Double click problem [SOLVED] | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271967@lists.php.net to get a copy of this message | ||
At 4:23 PM -0700 3/21/08, Jim Lucas wrote:
It would require a little JS, but you could use the onUnload feature and pop up a warning that would tell them the problem(s) of leaving this page. Then use the confirm() method from JS to either allow or deny them to leave the current page. I don't know if you can limit this action to only take affect when they press the back button, but it might help in any event.Jim: I tried that. The problem is that you'll get that notice if the user submits the form as well. IOW, no matter what the user does, as soon as they leave that page they get the notice. I might be able to put a hidden input field to cancel the notice, but like everything -- one thing leads to another. Thanks, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com