Re: Unobtrusive Javascript validation

2011-03-11 Thread Miles J
Cake doesn't have any JS validation, so I am a bit confused here.

On Mar 11, 8:48 am, AD7six  wrote:
> On Mar 11, 5:27 pm, Karl Oakes  wrote:
>
> >  If I were handcoding a site I would normally create my own js validation
> > script or use a jQuery validate plugin. I have just come from an ASP.net MVC
> > 3 learning curve that provides unobtrusive js by default. I was just
> > surprised that CakePHP still produced inline js nastiness for validation.
>
> What js are you referring to?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Unobtrusive Javascript validation

2011-03-11 Thread AD7six


On Mar 11, 5:27 pm, Karl Oakes  wrote:
>  If I were handcoding a site I would normally create my own js validation
> script or use a jQuery validate plugin. I have just come from an ASP.net MVC
> 3 learning curve that provides unobtrusive js by default. I was just
> surprised that CakePHP still produced inline js nastiness for validation.

What js are you referring to?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Unobtrusive Javascript validation

2011-03-11 Thread Karl Oakes
 If I were handcoding a site I would normally create my own js validation 
script or use a jQuery validate plugin. I have just come from an ASP.net MVC 
3 learning curve that provides unobtrusive js by default. I was just 
surprised that CakePHP still produced inline js nastiness for validation. 
Remember I'm still a complete noob with CakePHP and will need to find out 
the best practise for performing js validation and overall js integration

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Unobtrusive Javascript validation

2011-03-11 Thread Karl Oakes
This is my first question so please be gentle... I am a complete noob with 
CakePHP, but I have used MVC frameworks before ( .Net MVC(1,2,3)). I love 
the validation rules that are setup within the model and the automagic 
client side validation that it provides, but the inline event handlers go 
against all that I have learned about JavaScript. Does CakePHP provide an 
unobtrusive javascript option or do I need to code this myself, many 
thanks...

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Unobtrusive Javascript validation

2011-03-11 Thread AD7six


On Mar 10, 10:29 pm, Karl Oakes  wrote:
> This is my first question so please be gentle... I am a complete noob with
> CakePHP, but I have used MVC frameworks before ( .Net MVC(1,2,3)). I love
> the validation rules that are setup within the model and the automagic
> client side validation that it provides, but the inline event handlers go
> against all that I have learned about JavaScript.

What js are you referring to?

IME, as soon as you want anything more than absolutely trivial js -
you're best of doing it independently of your php framework.

> Does CakePHP provide an
> unobtrusive javascript option or do I need to code this myself, many
> thanks...

Personally, I'd implement that either as a simple js regex routine or
an ajax request to validate the field(s) on change and act
appropriately.

AD

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php