Re: Adding QuickForm Javascript Form Rule

From: Date: Fri, 08 Sep 2006 14:58:11 +0000
Subject: Re: Adding QuickForm Javascript Form Rule
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25084@lists.php.net to get a copy of this message
Hi, Michael Caplan wrote:
Thanks for the reply Alexey. Humm. Would it be possible to inject some custom javascript that is generated by quickform? Anything possible unconventional / hackish solutions?
You can subclass HTML_QuickForm and override its getValidationScript() method. Though you'll probably need either to completely rewrite it or to hack the generated javascript.
I'm anxiously awaiting to test out the next major quickform release :)
Yeah, me too. :-D
Alexey Borzov wrote:
Hi, Michael Caplan wrote:
Is it possible to add a client side validation rule that can be applied to the entire form, like how addFormRule() works server side? I've tried a variety of approaches, but no luck so far.
Unfortunately, no. Besides, we are working on next major version of QuickForm right now, so it is also improbable that it will ever be implemented...


« previous php.pear.general (#25084) next »