[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-27 Thread Jörn Zaefferer
voltron schrieb: Hi Jörn, I think it works now. Do the errors which I define in the error_container override the default ones in the plugin? Maybe it would be cool to make this a default validator for your plugin? I think many others might want this functionality. Thanks for looking into this pr

[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-26 Thread voltron
Hi Jörn, I think it works now. Do the errors which I define in the error_container override the default ones in the plugin? Maybe it would be cool to make this a default validator for your plugin? I think many others might want this functionality. Thanks for looking into this problem. On Sep 2

[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-26 Thread Jörn Zaefferer
voltron schrieb: Thanks Mike, did not see that :-) okay, the plugin works, but this is the error that I get from Firebug: Could you please give the latest revision a try? http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js -- Jörn

[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-25 Thread voltron
Thanks Mike, did not see that :-) okay, the plugin works, but this is the error that I get from Firebug: exception occured when checking element password1, check the 'password' methodjquery.validate.p... (line 14) this.optional is not a function (no name)("q", input#password1.{validate_reg_form:

[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-25 Thread Michael Geary
The test.js file has this line twice: $(document).ready(function(){ It looks like the second one is there by mistake. -Mike > From: voltron > Yes I get it too, adding the missing "}" does not help, > reformatting the JS causes unterminated string errors. The > code is exactly the same as you

[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-25 Thread voltron
Yes I get it too, adding the missing "}" does not help, reformatting the JS causes unterminated string errors. The code is exactly the same as you posted On Sep 25, 11:31 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > voltron schrieb:> Here is a test page: > >http://www.nhytro.de/apache2-default

[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-25 Thread Jörn Zaefferer
voltron schrieb: Here is a test page: http://www.nhytro.de/apache2-default/test_validation.html I get "missing } after function body" on line 24 of test.js via Firebug console (www.getfirebug.com). -- Jörn

[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-25 Thread voltron
Here is a test page: http://www.nhytro.de/apache2-default/test_validation.html Thanks On Sep 25, 7:50 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > voltron schrieb:> Yes, I added the method, this is what I have now [...] > > I can't see anything wrong with that. Can you post a test page? > >

[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-25 Thread Jörn Zaefferer
voltron schrieb: Yes, I added the method, this is what I have now [...] I can't see anything wrong with that. Can you post a test page? It may also help to use the debug-option, just specify validate({ debug: true, ...}). -- Jörn

[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-24 Thread voltron
Yes, I added the method, this is what I have now // JS $(document).ready(function(){ jQuery.validator.addMethod("password", function( value, element, param ) { return this.optional(element) || value.length >= 6 && / \d/.test(value) && /[a-z]/i.test(value); }, "Your password must

[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-24 Thread Jörn Zaefferer
voltron schrieb: Hi Jörn, I have just tested your suggestion. Sadly, it does not work, if I add "password:true to my HTML, I get this: jQuery.validator.methods[rule.method] has no properties http://localhost/de/js/jquery.validate.pack.js Line 14 I am following the example on your page, the one

[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-24 Thread voltron
Hi Jörn, I have just tested your suggestion. Sadly, it does not work, if I add "password:true to my HTML, I get this: jQuery.validator.methods[rule.method] has no properties http://localhost/de/js/jquery.validate.pack.js Line 14 I am following the example on your page, the one with the separate

[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-23 Thread Jörn Zaefferer
voltron schrieb: Could you show me how I would implement this using the code above? Another thing, the code below, using password:true causes errors and does not work with Jquery 1.2 Just add also this to your page: jQuery.validator.addMethod("password", function( value, element, param )

[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-23 Thread Jörn Zaefferer
Web Specialist schrieb: Jörn marketo form accepts a password with 6 numbers. But rule for that require numeric and letters, right? Could be a bug? Yes, a bug. Thanks for spotting, fixed that. -- Jörn

[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-23 Thread voltron
Thanks for the reply Jörn, unfortunately, a few things are not clear. I have used the example on your site as a template for my code. I use the metadata plugin and a separate div to show the errors: $(document).ready(function(){ var container = $('#error_container'); $("#login_form").va

[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-22 Thread Web Specialist
Jörn marketo form accepts a password with 6 numbers. But rule for that require numeric and letters, right? Could be a bug? Cheers 2007/9/22, Jörn Zaefferer <[EMAIL PROTECTED]>: > > > voltron schrieb: > > Hi, > > > > has anyone written a validator to check for alphanumeric values and a > > min le

[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-22 Thread Jörn Zaefferer
voltron schrieb: Hi, has anyone written a validator to check for alphanumeric values and a min length for the validator plug in? Take a look at this demo: http://dev.jquery.com/view/trunk/plugins/validate/demo-test/marketo/ It uses a custom method for the password, you can find it right at