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
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
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
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
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?
It may
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
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:
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
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,
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
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
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 be at
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');
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
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
input id=password1 type=password name=password1
class={validate:{required:true, password:true}}
Just add
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
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 length for the
17 matches
Mail list logo