[jQuery] Re: not equalTo ?
Yes, I'm using that on my own application. I've got the same rating implemented in Java to do the same validation on the serverside without having to use ajax. Jörn On Mon, Nov 17, 2008 at 11:08 PM, Kemal Delalić <[EMAIL PROTECTED]> wrote: > > Thank you for your answer Jörn, i just added an "notequalTo" method > like; > >notequalTo: function(value, element, param) { >return value != $(param).val(); >} > > and the corresponding message, it works like a charm. This password > quality 'plugin' is tested to be working with your validation ? > > On Nov 17, 6:09 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> > wrote: >> I recommend to write a custom >> method:http://docs.jquery.com/Plugins/Validation/Validator/addMethod >> >> A reference implementation, which also checks the password quality, >> can be found >> here:http://jqueryjs.googlecode.com/svn/trunk/plugins/validate.password/jq... >> >> Jörn >> >> On Mon, Nov 17, 2008 at 6:05 PM, [EMAIL PROTECTED] >> >> <[EMAIL PROTECTED]> wrote: >> >> > sorry for double posting it, but i'm really stuck on this one and >> > can't go on with the project until it's done :( >> >> > On Nov 17, 6:03 pm, "[EMAIL PROTECTED]" >> > <[EMAIL PROTECTED]> wrote: >> >> Hi everyone, i'm new to jQuery and yesterday i got into a little issue >> >> with form validation. >> >> >> What i want to do is to check if username and password fields are >> >> having the same input, but I haven't found a solution to do this. >> >> >> Is there any way to make equalTo 'nagative' so if user enters the same >> >> username and password, form doesn't validate ?
[jQuery] Re: not equalTo ?
Thank you for your answer Jörn, i just added an "notequalTo" method like; notequalTo: function(value, element, param) { return value != $(param).val(); } and the corresponding message, it works like a charm. This password quality 'plugin' is tested to be working with your validation ? On Nov 17, 6:09 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > I recommend to write a custom > method:http://docs.jquery.com/Plugins/Validation/Validator/addMethod > > A reference implementation, which also checks the password quality, > can be found > here:http://jqueryjs.googlecode.com/svn/trunk/plugins/validate.password/jq... > > Jörn > > On Mon, Nov 17, 2008 at 6:05 PM, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > > sorry for double posting it, but i'm really stuck on this one and > > can't go on with the project until it's done :( > > > On Nov 17, 6:03 pm, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > >> Hi everyone, i'm new to jQuery and yesterday i got into a little issue > >> with form validation. > > >> What i want to do is to check if username and password fields are > >> having the same input, but I haven't found a solution to do this. > > >> Is there any way to make equalTo 'nagative' so if user enters the same > >> username and password, form doesn't validate ?
[jQuery] Re: not equalTo ?
I recommend to write a custom method: http://docs.jquery.com/Plugins/Validation/Validator/addMethod A reference implementation, which also checks the password quality, can be found here: http://jqueryjs.googlecode.com/svn/trunk/plugins/validate.password/jquery.validate.password.js Jörn On Mon, Nov 17, 2008 at 6:05 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > sorry for double posting it, but i'm really stuck on this one and > can't go on with the project until it's done :( > > On Nov 17, 6:03 pm, "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> wrote: >> Hi everyone, i'm new to jQuery and yesterday i got into a little issue >> with form validation. >> >> What i want to do is to check if username and password fields are >> having the same input, but I haven't found a solution to do this. >> >> Is there any way to make equalTo 'nagative' so if user enters the same >> username and password, form doesn't validate ?
[jQuery] Re: not equalTo ?
sorry for double posting it, but i'm really stuck on this one and can't go on with the project until it's done :( On Nov 17, 6:03 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi everyone, i'm new to jQuery and yesterday i got into a little issue > with form validation. > > What i want to do is to check if username and password fields are > having the same input, but I haven't found a solution to do this. > > Is there any way to make equalTo 'nagative' so if user enters the same > username and password, form doesn't validate ?