Re: Ajax validation vs Javascript validation?

2007-12-01 Thread Marcin Jaworski

As long as you really don't need to check values against database I
think it is better to do JS validation. This will be faster and won't
consume resources on your server just to validate simple values
(regexp or if field is required etc). Of course you should also
validate on the server side after submition, but I assume you already
know that (JS can be turned off).

On 1 Gru, 07:16, Action <[EMAIL PROTECTED]> wrote:
> Quick question:
>
> I need to validate a form but I don't need to compare any of the
> fields to the database. Is it better to use ajax validation with the
> model or javascript validation? and why?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Ajax validation vs Javascript validation?

2007-11-30 Thread Action

Quick question:

I need to validate a form but I don't need to compare any of the
fields to the database. Is it better to use ajax validation with the
model or javascript validation? and why?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---