Re: Making AJAX play nice with $this->model->validates()

2009-09-20 Thread young.steveo
THANK YOU! That was exactly the problem. I was using notEmpty, AND required => true. Also, thanks for the tip on using a single controller action! On Sep 20, 3:03 am, "euromark (munich)" wrote: > actually thats not quite how it is supposed to be done > > you only need one validate_ajax method

Re: Making AJAX play nice with $this->model->validates()

2009-09-20 Thread euromark (munich)
actually thats not quite how it is supposed to be done you only need one validate_ajax method or whatever if you set up your rules according to the cookbook (and without using "required"=>true!!!) you are able to pass only the form vars necessary for the current validation - inside your single aj

Making AJAX play nice with $this->model->validates()

2009-09-19 Thread young.steveo
First, a big "Thank You" to this group, it's helped me a lot by reading posts here. I'm using ajax to pre-validate a form while the user types data into the form's fields. So, if the user types a username that is too short, or already in use, etc., they are notified by the script as they type.