Re: QF add/registerRule() to get client side validation - RESOLVED

From: Date: Sat, 10 Sep 2005 06:50:52 +0000
Subject: Re: QF add/registerRule() to get client side validation - RESOLVED
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20895@lists.php.net to get a copy of this message
Hi, Kyungho Baek wrote:
1) Do you really expect QuickForm to magically write a Javascript date validation function for you?
yes, i did
Well, guess what, it can't magically write Javascript. You must define validation function yourself, either giving it the same name as your PHP function has (if using callback function) or (preferrably) creating a subclass of HTML_QuickForm_Rule and filling it getValidationScript() method. Consult the rules-custom.php example provided with the package.
2) What's the point of posting several pages of generated code? i don't know how to respond to this question.
That's because there is little point in posting generated code, yes?

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