Re: Freezing submit button in HTML_QuickForm onSubmit
| From: | Bertrand Mansion | Date: | Mon, 17 Nov 2003 14:39:02 +0000 |
| Subject: | Re: Freezing submit button in HTML_QuickForm onSubmit | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8993@lists.php.net to get a copy of this message | ||
<bs@hi.is> wrote :
> Thanks for a quick reply Betrand.
> I played around with this thing and took out client-side validation.
> After that I can set the onSubmit attribute for the form.
> Client-side javascript rule validation is set as onSubmit for the form
> if the elements are set to be validated client-side and therefore it
> seems to me that I can't set any other onSubmit functionality when I
> have client-side rule validation.
> I haven't updated to the latest version of HTML_QuickForm yet but is
> this working as expected or are there ways to do this ?
> Regards,
> Birgir
I meant :
>> onsubmit='this.disable=true;return true;' ?
In the submit button declaration:
$form->addElement('submit', 'submit', 'submit',
array('onclick' =>
'this.disable=true;return true;'));
Sorry. Still, I haven't tested yet. Let me know how it goes.
As for 3.2, it isn't changed compared to 3.1.
Bertrand