: [jQuery] Re: Validation plugin noob
are your fields inside a table?
I was seeing that in IE, if fields were in a table cell, the errors were
being added but the cell wasn't getting larger and the errors could not be
seen.
Josh Nathanson-3 wrote:
Hey all,
Using Jorn's Validation plugin, it's
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
Aaron Heimlich schrieb:
Jorn,
Is there an ETA on version 1.2 of your validation plugin?
Nope, none yet. Though the latest revision is already very stable. I'll
try to release a beta/rc soon, something you can start using while the
final release has to wait for updates on demos and
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
seedy schrieb:
Is it possible to use errorPlacement with the validation plugin to have a
different placement for each field validated?
ie.
$('#testForm').validate({
rules:{
firstname:{required:true},
integer:{required:true}
}
})
I would like to
wow I hadn't considered using an if to check the id of the element. Feeling
really dumb right now. Thanks!
Jörn Zaefferer wrote:
seedy schrieb:
Is it possible to use errorPlacement with the validation plugin to have a
different placement for each field validated?
ie.
ok now a follow up question
I have 3 text boxes that make up a telephone number. I want validation to
fail if any of the text boxes are not complete, but I only want to show one
message for the failure, not one per textbox. Any recommended ways of doing
this?
Jörn Zaefferer wrote:
seedy schrieb:
ok now a follow up question
I have 3 text boxes that make up a telephone number. I want validation to
fail if any of the text boxes are not complete, but I only want to show one
message for the failure, not one per textbox. Any recommended ways of doing
this?
The first
Just bumping this thread to see if anyone has any idea about this bug
in IE6.
On Aug 29, 6:52 pm, Feed [EMAIL PROTECTED] wrote:
Jörn, the problem is simple:
using .parent().parent() in errorPlacement breaks the code in IE6.
For example, imagine a TABLE with 2 cols and 2 rows.
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
Jörn, did you get to this issue? Sorry to bother you, but currently I
had to disable validation from my forms because of this bug in IE6,
I really want to use it in my project, it is awesome. Thanks in
advance.
On Aug 27, 4:53 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote:
Jörn Zaefferer schrieb:
Feed schrieb:
Jörn, did you get to this issue? Sorry to bother you, but currently I
had to disable validation from my forms because of this bug in IE6,
I really want to use it in my project, it is awesome. Thanks in
advance.
No, I haven't got around to it. Any help on the actual source of
Jörn, the problem is simple:
using .parent().parent() in errorPlacement breaks the code in IE6.
For example, imagine a TABLE with 2 cols and 2 rows.
errorPlacement: function(error, element) {
error.appendTo( element.parent().parent().css('backgroundColor','#00') );
}
In FIREFOX the TR
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
Anyone, please?
I'm almost sure that this is a bug in Validation plugin by Jörn
Zaefferer, which does not accept parent().parent() inside
errorPlacement... can someone help me to fix this bug?
$(document).ready(function(){
$
Jörn Zaefferer schrieb:
Feed schrieb:
Ok, there seem to be a bug somewhere look:
[...]
Conclusion: IE doesn't seem to understand the second .parent() it
doesn't select the TR. What can I do to fix this?
Did you check what IE select in that case?
Sorry, forget that. I'm gonna
Yes, IE selects the TD instead of TR. Just like if I were using just
ONE parent().
On Aug 27, 4:51 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote:
Feed schrieb: Ok, there seem to be a bug somewhere look:
[...]
Conclusion: IE doesn't seem to understand the second .parent() it
doesn't
Sorry, I thought HTML were allowed the image representing what I
need to accomplish is here:
http://i117.photobucket.com/albums/o71/feed_turbo/Misc/jquery_validation.gif
Feed schrieb:
What I need is this:
[IMG]http://i117.photobucket.com/albums/o71/feed_turbo/Misc/
jquery_validation.gif[/IMG]
I've tried several combinations but I can't achieve what I want. In
theory this code should work, shouldn't it?
errorPlacement: function(error, element) {
Yes! Jörn, thank you very much for your amazingly quick reply, it
worked :)
And sorry for taking your time with this noob question.
On Aug 24, 4:52 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote:
Feed schrieb: What I need is this:
[IMG]http://i117.photobucket.com/albums/o71/feed_turbo/Misc/
Whoops too soon to celebrate. It worked only in Firefox 2 but NOT
on IE 6 (Windows XP). I'll try to fiddle with the code and see if I
can make it work in IE.
On Aug 24, 4:58 pm, Feed [EMAIL PROTECTED] wrote:
Yes! Jörn, thank you very much for your amazingly quick reply, it
worked :)
And
Jörn,
Since it's not working in IE, I've been trying other methods with no
luck... things like:
error.appendTo( element.parent().parent().next().find(td:gt(0)) );
or
error.appendTo( element.parent().parent().next().find(td:eq(1)) );
...
What do you think? Maybe a bug somewhere? It's strange
you're missing a comma after 'event: keyup', it should be ' event:
keyup,'
dennis.
debussy007 wrote:
Hi, I am trying to use the Validation plug-in but I have the following error
:
missing } after property list
[Break on this error] rules: {\n
Here is the simple code :
Oh ! Thank you !
This comma was not in the first example of the plugin's author !
spinnach wrote:
you're missing a comma after 'event: keyup', it should be ' event:
keyup,'
dennis.
debussy007 wrote:
Hi, I am trying to use the Validation plug-in but I have the following
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
any suggestion about this,please
On Jul 9, 10:56 am, WebolizeR [EMAIL PROTECTED] wrote:
Hi;
I've used the jQuery's official validation plugin (http://
bassistance.de/jquery-plugins/jquery-plugin-validation/), your can see
the page in here (http://nexus.di-tasarim.com/index.php?
WebolizeR wrote:
any suggestion about this,please
I get this warning when enabling strict warnings (via web developer
toolbar) in Firefox:
trailing comma is not legal in ECMA-262 object initializers }\n
index.php (line 39)
--
Jörn Zaefferer
http://bassistance.de
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
Terak wrote:
I'm using cakephp framework and I'm running into problem if the
element name if different from the element ID. Currently the form is
getting submitted w/o being validated, but if I change the textarea
name to contact_description then it will validate it. Also I would
like to make
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
Luc Pestille wrote:
Thanks - the examples made it a lot clearer, I almost feel stupid for not
realising how easy it is, and having tried RC1 now, I can't see me ever using
any other validation.
Glad to hear that.
Last question, and might require it's own thread; using TinyMCE and your
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
as I need it on your site.
Thanks,
Luc Pestille
Web Designer
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jörn
Zaefferer
Sent: 21 May 2007 21:49
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Validation function help request
Luc
Luc,
Hi Jörn,
I'd like to use your plugin, and I was up to a point, but the problem I'm
having is three-fold. I'm sure it can be solved with your plugin, and I'd love
to know how;
Ideally I'd like an example to get me started - assuming a select dropdown (#jobtype)
with two options ('a',
Luc,
having written a pretty complete validation plugin I could give you
quite a lot of tips on how to build one. But I tend to think that it
makes much more sense if you could just tell me what need from the
plugin and I could tell you how you can achieve that with my plugin. And
in case
301 - 369 of 369 matches
Mail list logo