Re: jquery validation helper not working in 2.2.4

2013-01-10 Thread Matt
Hi,

That's a helper I created a while back and it will work on 2.2.4, although 
you might want to get the latest version from GitHub

https://github.com/vz28bh/CakePHP-JqueryValidationHelper

In that version I recommend opening the form like below, just to make 
things a little cleaner.

JqueryValidation->createHorizontal('User'); ?>

Also, make sure you include Jquery itself 

echo $this->Html->script('jquery.min');

and have defined some validation criteria in your models

'username' => array(
'notempty' => array(
'rule' => array('notempty'),
//'message' => 'Your custom message here',
//'allowEmpty' => false,
//'required' => false,
),
),

If you can get Firefox with Firebug installed you can see if there are any 
Javascript problems.

I assume "server side" means you only get validation after clicking submit, 
which would be using the Cake model validation instead of Javascript.

Matt

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: jquery validation helper not working in 2.2.4

2013-01-09 Thread lowpass
On Tue, Jan 8, 2013 at 3:18 PM, vanessa v  wrote:
> I'm trying to use the jquery validation helper in my registration form but
> looks like it is still validating server-side.

You haven't said what the problem is. And what do you mean by "it is
still validating server-side"? The helper itself is server-side code,
whereas the actual JqueryValidation code runs on the client.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.