Re: [Rails] Re: moving form validation to client-side

2012-03-06 Thread vishal singh
jQuery(function(){ jQuery('.ValidField').each(function(){ jQuery(this).validate({ expression: "if (VAL) return true; else return false;", message: "Please enter the Required field" }); }); jQuery('.ValidInteger').each(function(){ jQuery(this).validate({ expression: "if (VAL.match(/^[0-9]*$/) && V

Re: [Rails] Re: moving form validation to client-side

2012-03-05 Thread Dev Guy
On Mon, Mar 5, 2012 at 7:14 AM, Mohamad El-Husseini wrote: > Have you seen > this? http://railscasts.com/episodes/263-client-side-validations > > > On Sunday, March 4, 2012 7:08:34 PM UTC-3, Rajinder Yadav wrote: >> >> Hi I know with javascript we can validate the input of a form on the >> client,

[Rails] Re: moving form validation to client-side

2012-03-05 Thread Mohamad El-Husseini
Have you seen this? http://railscasts.com/episodes/263-client-side-validations On Sunday, March 4, 2012 7:08:34 PM UTC-3, Rajinder Yadav wrote: > > Hi I know with javascript we can validate the input of a form on the > client, is there an easy way to specify this in rails? I am thinking > the jav

[Rails] Re: moving form validation to client-side

2012-03-04 Thread Dev Guy
On Sun, Mar 4, 2012 at 6:07 PM, Dev Guy wrote: > On Sun, Mar 4, 2012 at 5:08 PM, Dev Guy wrote: >> Hi I know with javascript we can validate the input of a form on the >> client, is there an easy way to specify this in rails? I am thinking >> the javascript code getting generated using some sort

[Rails] Re: moving form validation to client-side

2012-03-04 Thread Dev Guy
On Sun, Mar 4, 2012 at 5:08 PM, Dev Guy wrote: > Hi I know with javascript we can validate the input of a form on the > client, is there an easy way to specify this in rails? I am thinking > the javascript code getting generated using some sort of DSL? > While looking around I did mange to come a