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
Very interesting. It does indeed work with Opera. On Firefox I just
get a blank page, and IE 7 shows me the Page can't be displayed -
error.
The pagesize is huge (cause of all the numerous comments) but that
shouldn't cause a blank page. I really have no idea what might be
causing this...
On 5
Suni schrieb:
Very interesting. It does indeed work with Opera. On Firefox I just
get a blank page, and IE 7 shows me the Page can't be displayed -
error.
The pagesize is huge (cause of all the numerous comments) but that
shouldn't cause a blank page. I really have no idea what might be
Suni schrieb:
Cant reach http://bassistance.de/jquery-plugins/jquery-plugin-validation/,
it just gives me a blank page.
I'd love to see all the comments and documentation, since I'm having
lots of problems using the additional-methods.js (gives javascript-
errors in FF).
I'm still unable
I cant see the site a long long time ago =/
On 9/5/07, Jörn Zaefferer [EMAIL PROTECTED] wrote:
Suni schrieb:
Cant reach http://bassistance.de/jquery-plugins/jquery-plugin-validation/,
it just gives me a blank page.
I'd love to see all the comments and documentation, since I'm having
This is more a smarty issue, than jquery/js.
There is a smarty tag {ldelim} for { and {rdelim} for }.
Also wrapping a piece of code with {literal}function() { code; } {/
literal} tells the parser to ignore the text between the tags.
Regards,
Emil Ivanov
On 28 Авг, 11:05, Olivier
You could try adding this in $(document).ready, before calling the
validate plugin:
$.meta.cre = /(\[.*\])/;
$(#foo).validate();
Although that is not documented in the meta data plugin (maybe there
should be an option in it to do that).
On Aug 28, 9:05 am, Olivier Percebois-Garve [EMAIL
I'll do that as a workaround if there is no nice solution.
Its just that inline validation seems easier to maintain in the futur in the
app I have because it is made of a lot of templates
and a maintainer that dont know the app well maybe lost at finding where the
validation come from.
On
Is it an option for you to not use the meta data plugin? The rules can
be set without it too.
$(#Form).validate({rules: {inputname: required}});
--David
Olivier Percebois-Garve schreef:
Hi
I'm having an issue with the validation plugin. It conflicts with a
smarty-based php class named
How about:
$.meta.cre = /((?!\[)(.*)(?=\]))/;
This will fail if you use class=foo [required: true] but should be
fine with class=[required: true] foo
For it to work like it does with {} (class names before and after are
ignored), the meta data plugin would probably be have to be modified.
On
Great ! Thanks a lot.
It just work like you said. foo [required: true] breaks, but [required:
true] foo works like a charm.
PS: I'm amazed by the jquery mailing. Coolness and quality people.
Quite different to a php-pastry related I'm used too, where you never now
when and why it starts flaming
I solved this issue by using the refresh and reset methods from within
the duplicator sections. I create the object as the last item on the
page to load (i know its cheesy) because setting a var from ready()
caused to many issues.
On Jul 24, 10:53 am, n0ah [EMAIL PROTECTED] wrote:
I have a
howard chen wrote:
abt this plugin:
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
several problems:
1. Is it possible to dynamic add INPUT into the current list of checking?
You can use validator's refresh method to check for additional input
elements. That works best
On 7月13日, 上午3時44分, J rn Zaefferer [EMAIL PROTECTED] wrote:
howard chen wrote:
abt this plugin:
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
several problems:
1. Is it possible to dynamic add INPUT into the current list of checking?
You can use validator's refresh
Sam,
On the API documentation page have a look at the examples for .validate() -
http://jquery.bassistance.de/api-browser/plugins.html#validateMap
There is a parameter called 'event' which seems to control when each input
is validated, its use is shown a couple of times.
This isn't documented
The validation doesn't fire on element blur before you submit the form
(only after), perhaps it may be a bug?
What I want to do is show a message when the form is submitted, not
when an element loses focus (but also want the error class to be added
to an element when it is not valid).
What may
While it is not exactly the best way to do it (it uses undocumented
settings), I have found a solution, but still have one issue - the
showErrors function still runs when there are no errors (i.e. the
errors parameter is an empty object).
var validator = $(form).validate(
{
onblur:
Sam Collett wrote:
With those changes I just made it is working, but as it uses
undocumented functions (onblur, onkeyup settings and the
validator.check function).
There is document option you missed: submitHandler. A callback that is
invoked when the form is valid after a form submit. Of
I had a similar problem with the validate plugin. Using the non-packed
version worked. Try that and see if the problem persists.
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of howard chen
Sent: Friday, June 01, 2007 10:57 AM
To:
Yes, the current compressed version (using packer) of validate plugin
has problem with IE (simply not working), I can't say this is a bug
(as non-compressed one works), but the author's writing style might
not be too compatible with those compressors.
so, you can use the non-compressed one, or
Jörn,
I don't think there is a case where you want to validate a hidden
input, is there?
I'm not sure if this was a question to just Ryan or to everyone. :) However,
I often find the need to validate against hidden form fields. Often when
building advanced form functionality, I'm using hidden
Ryan Rose wrote:
Could we pass in filtering settings to validate the same way rules/messages
are passed? This would solve my problem, I would pass in
.not([EMAIL PROTECTED])) and the hidden fields would be ignored while Dan
wouldn't pass in any filters so his hidden fields would be validated.
, May 25, 2007 9:58 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Validation Plugin validates hidden form fields
Ryan Rose wrote:
Could we pass in filtering settings to validate the same way
rules/messages
are passed? This would solve my problem, I would pass in
.not([EMAIL PROTECTED
@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jörn Zaefferer
Sent: Wednesday, May 23, 2007 4:53 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Validation Plugin validates hidden form fields
Ryan Rose wrote:
Jörn,
How can I force the new validation plugin to ignore form elements
Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jörn Zaefferer
Sent: Wednesday, May 23, 2007 4:53 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Validation Plugin validates hidden form fields
Ryan Rose wrote:
Jörn,
How can I force the new validation
Ryan Rose wrote:
Jörn,
How can I force the new validation plugin to ignore form elements with
display: none?
I modified the previous release this way:
validator.elements =
this.find(:input:not(:submit):not(:reset):visible).focus(function() {
validator.lastActive = this;
});
Try
101 - 139 of 139 matches
Mail list logo