Re: Recognizing double clicks
| From: | Manuel Lemos | Date: | Sun, 22 Nov 2009 06:30:18 +0000 |
| Subject: | Re: Recognizing double clicks | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-300025@lists.php.net to get a copy of this message | ||
Hello,
on 11/22/2009 03:34 AM Skip Evans said the following:
> It just dawned on me the button may be disabled right when it's clicked
> to prevent a double submit?
>
> Is that doable?
This forms generation class can do exactly that. It generates Javascript
with form HTML that disables the form submit button while the form is
submitted. Then it enables the submit button again. If the user clicks
on the button again, an alert message appears asking whether the user
really wants to submit the form again.
http://www.phpclasses.org/formsgeneration
Here you can see a live example:
http://www.meta-language.net/forms-examples.html?example=test_form
--
Regards,
Manuel Lemos
Find and post PHP jobs
http://www.phpclasses.org/jobs/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/