Re: [SMARTY] SmartyValidate Javascript?
| From: | Marcus Bointon | Date: | Tue, 10 May 2005 11:24:32 +0000 |
| Subject: | Re: [SMARTY] SmartyValidate Javascript? | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12599@lists.php.net to get a copy of this message | ||
On 10 May 2005, at 11:36, Vicente Werner wrote:
I belive formsess does what you want, but I don't recommend such thing as Javascript is highly problematic in it's iterations between different browsersWell, no-one said it was easy... but you don't have to do it for every browser, because it can always fall back to server-side validation (which you must do anyway when JS is unavailable). Client-side validation is better for both the visitor (much faster) and the server (reduced load). I've had a look at formsess (which does seem to be languishing) and FormCat, however, neither capitalise on the fact that you've already set up all the validation rules in SmartyValidate, requiring you to set up validation rules twice. It just seems that an integrated client/server validation solution would be ideal for pretty much everyone? Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture marcus@synchromedia.co.uk | http://www.synchromedia.co.uk