I am testing this plugin (in conjunction with another called
'InFieldLabel.js' that merely fades back the label on focus) and am
getting a strange effect where only some of the fields validate.
The test page is:
http://www.richardbarnfather.co.uk/esu/php/booking_mike.php
All fields have a class
On Mon, Jan 18, 2010 at 4:55 AM, perkin5 mshe...@btinternet.com wrote:
http://www.richardbarnfather.co.uk/esu/php/booking_mike.php
All fields have a class of 'required' and the email field has
The fields that aren't validating have typos in the class setting -
they're missing the equals sign:
Hello everyone,
I'm using the validation plugin.
I have a function which handles a field: it's required if the function
returns true, otherwise it is not:
q[1]: {
required: function () {
...
People enter an address to lookup on a google map, this makes an
asynchronous call and will either return a lat/longitude or not. if
not, i want to display an error to the user that an address could not
be found.
How do I go about this? I've not managed to get it working using the
remote
Didnt i try that... :P.
Thanks a lot for soulution and quick response!! That did a exactly
what i wanted.
On 19 joulu, 22:25, Andre Polykanine an...@oire.org wrote:
Hello Antti and all,
You just don't need to nestmessages, they should be
overwritten:
Hi!
Im quite newbie with jquery but so far i think it realy rocks. Anyways
im now trying to use Validation plugin but have one problem to solve
to get in job done.
My form has natrually many fields, each field can have many rules,
even custom rules. Trouble is that i cant find a way to overwrite
@
jabber.org
Yahoo! messenger: andre.polykanine; ICQ: 191749952
Twitter: m_elensule
- Original message -
From: Antti antti.mak...@mindworks.fi
To: jQuery (English) jquery-en@googlegroups.com
Date: Saturday, December 19, 2009, 12:09:32 PM
Subject: [jQuery] jQuery Validation Plugin messages
Hello everyone,
I have a text field (textarea) that is required only if a specific
radio button in the group is checked.
Here's the explanation: a blog entry may be a personal entry, a
publication and a news post. If it's a news post or a
publication, then the
announce is required.
How can I
Something like this:
input type=radio name=blog-entry value=personal-entry/
input type=radio name=blog-entry value=publication/
input type=radio name=blog-entry value=post/
textarea name=announce/textarea
$(form).validate({
rules:{
announce: {
required: function(element)
-
From: Leonardo K leo...@gmail.com
To: jquery-en@googlegroups.com jquery-en@googlegroups.com
Date: Tuesday, December 15, 2009, 3:58:52 PM
Subject: [jQuery] Validation plugin: required by condition
Something like this:
input type=radio name=blog-entry value=personal-entry/
input type=radio
You can use the errorLabelContainer to put all your label in a div, and the
plugin will handle this.
errorLabelContainer: #messageBox,
On Sun, Dec 13, 2009 at 09:33, Droy droy...@gmail.com wrote:
Greetings! I had a small problem: all errors received in plugin
validation I take out in div the
Greetings! I had a small problem: all errors received in plugin
validation I take out in div the block with id = error.
errorPlacement: function (error) {
$ (' #error ').html (error); }
All works well. But when the user has corrected the data on correct in
case of an error errors from
Dear all,
I'm trying to use the jquery validation plug in to verify that two
fields (email addresses) are the same. If read through the tutorials
etc but it does not work. I wondering whether I am using it in the
right way. I want to validate each field individually so I use onblur
to execute the
datecheck. Is there any other approach that we can
follow?
--
View this message in context:
http://old.nabble.com/JQuery-validation-plugin---custom-validation-for-group-of-html-elements-tp26421224s27240p26421224.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.
I have a set of combo boxes on a HTML form which act as a Date
control:
div id=datecheck
select id=datecheck_y name=datecheck_y
option value=20092009/option
option value=20082008/option
option value=/option
/select
select id=datecheck_m name=datecheck_m
option
Is there a list somewhere of what the options are for the rules (required,
email)
I can't seem to find more info on this in the jquery site.
I'm having a strange problem with jNice and the validation plugin.
Probably the easiest way to describe the error is by giving an
example.
I load the page with my form on it, then without typing anything, I
click submit. The jQuery validation plugin puts errors around my
fields saying This field
typing anything, I
click submit. The jQuery validation plugin puts errors around my
fields saying This field is required.
However, when I try to type something into the input fields to satisfy
the validation, I can type a couple of letters, three or four if i'm
really fast, but as the validation
will automagically display one section at a
time, with a Next hyperlink to take you to the next section with
codea id=step0Next class=next href=#Next /a/code
My question is this: Using the jQuery Validation plugin, how can I
validate each fieldset when a user clicks Next, and so forth, instead
not be red
How do i resolve this problem?
--
View this message in context:
http://old.nabble.com/JQuery-validation-plugin---error-highlight-problem-tp26282040s27240p26282040.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.
what am I doing wrong here? I cannot figure out how to use the
addMethod().
var frmSubmittal = $(#frmSubmittal);
//validates the form
frmSubmittal.validate({
debug: false,
I'm using the Jquery Validation Plugin on my site, and I have a
textfield that validates to only allow numbers. However, that also
doesn't allow linebreaks - which I need to have! Is there a way around
this?
Here's the working code:
html
head
script src=http://code.jquery.com/jquery-latest.js
I have a problem with the validation plugin when I add a new
validation method in IE8, when I submit the form it just validate the
added method but the other fields are submitted anyway.
Also I have another problem with the valid() function, when I try to
see if the function is true to show a
Hi,
I want to stop class error added to input element, how to do that
please ?
I'm trying to use the Jquery Validation plugin on aspnet mvc
fframework but it doesn't work, when I open the firebug console it
display an error:
jQuery is not defined
[Break on this error] jQuery.extend(jQuery.fn, {\n
I don´t know how to fix this issue an had already added the
jquery-1.3.2.js
You need to reverse the order of sourcing the javascript files.
Put the jquery 1.3.2.js file before the validate.js.
-Anoop
On 8/27/09, Edgar Méndez. edgar9...@gmail.com wrote:
I'm trying to use the Jquery Validation plugin on aspnet mvc
fframework but it doesn't work, when I open
Hello,
I have a form with a set of input fields. I am going to validate the
form with jQuery Validation. The field has the value of its ID
different from the value of its name. I've looked around and tried
several times with the form validate method. But, it seems like the
validation got trigged
I think the validation plugin depends only on the name and not the id.
On 7/29/09, Leon leon...@gmail.com wrote:
Hello,
I have a form with a set of input fields. I am going to validate the
form with jQuery Validation. The field has the value of its ID
different from the value of its name.
Also, you might have a missing curly-bracket after
rules: {
score_1 : {required: true}
unless you just mis-typed it.
Tim :o]
On Jul 30, 7:57 am, Anoop kumar V anoopkum...@gmail.com wrote:
I think the validation plugin depends only on the name and not the id.
On 7/29/09, Leon
I belive it should be like this: (added messages for you if you
arean't using them)
$('#myform').validate({
rules: {
score_1 : {required: true},
score_2 : {required: true},
score_3 : {required: true}
}
messages: {
score_1 : Required message
Validation plug-in version: 1.5.5
Form plug-in version: 2.28
I was able to get the validation and submit to work together properly.
However, when using options in the validation plugin such as
errorClass and validClass I was ran into some trouble. Upon
submission, these classes would stick/stay.
I'm using the Validation plugin for JQuery and was wondering if there
was a function to submit the form without causing it to validate the
form. I have a table with a list of radio-buttons and above that is a
drop down list of states. The drop down list of states is used to
filter the table
Recently I have just started using JQuery and JQuery Validation
plugin. They are really great in terms of helping me in my project. I
am having problem with one of the property in the validation plugin. I
do not understand about the method called Remote. How do I write out
a script in JSP
Hi,
Let me describe the problem I have to solve :
When a field is unvalid : its label gets the errorClass class.
Allright !
When the field gets valid : the label, instead of only loosing the
error class, completely disappears (style=display: none;).
How can I keep my labels displayed when the
I'm having some troubles with passing variables to jQuery.format
I have a script (php) that's checks if the domain part exists. If not
it will show an message
The following code works #1
It split an email address and assigns the domain name to the var
hostName
$(document).ready(function() {
On 5 jun, 12:11, talisien globalnewsgrab...@gmail.com wrote:
I'm having some troubles with passing variables to jQuery.format
I have a script (php) that's checks if the domain part exists. If not
it will show an message
The following code works #1
It split an email address and assigns
Man i combed the docs for a day, and i missed that link everytime..
Thanks Jorn.
On May 23, 3:02 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com
wrote:
You need to quote the full key, eg name['name']: required.
Seehttp://docs.jquery.com/Plugins/Validation#Fields_with_complex_names_
A testpage would help. Can't see anything wrong with that code.
Jörn
On Tue, May 26, 2009 at 4:13 PM, Bob O bhan...@hcinsight.com wrote:
So it seems im still having some issues..
this is my html
form id=new_blog_post class=new_blog_post method=post action=/
blog_posts
p
label
Hi Bob,
Its working fine..
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
head
titleUntitled Page/title
script type =text/javascript src=jquery-1.3.2-vsdoc2.js
/script
Hi folks,
I found the answer:
scroll(0,0);
In my code, I put this line right after the code to generate the error
message at the top of the page telling how many total errors there
are.
Hope this is helpful to someone.
Kathryn
On Mar 31, 6:05 pm, Kathryn kathry...@gmail.com wrote:
I'm
You need to quote the full key, eg name['name']: required. See
http://docs.jquery.com/Plugins/Validation#Fields_with_complex_names_.28brackets.2C_dots.29
Jörn
On Fri, May 22, 2009 at 10:15 PM, Bob O bhan...@hcinsight.com wrote:
so as not to confuse..
the name attribute looks like this
Can anyone tell me how i can change which attribute on my form field
triggers the validation?
currently it appears the be the name attribute. So in my Rails app
using Rails helpers, it sets the name to somthing like formname
['fieldname'] and the whole name.
in my script if i do something like
so as not to confuse..
the name attribute looks like this
name=name['name'] for the input field
and the js is
rules: {
name['name']: 'required'
}
i noticed typos in the above question.
On May 22, 12:36 pm, bhan...@hcinsight.com bhan...@hcinsight.com
wrote:
Can anyone tell me how i can
Jon - Good catch - however that was just a cut/paste problem - below
is a new example that does not work as expected - for some reason the
validation errors are ignored and the form is posted - not what I was
expecting. Is there something else I need to do to prevent form from
posting on errors?
You can set debug:true for debugging. It will always prevent the form
submit, which is useful to look at errors that are thrown during
validation.
Jörn
On Wed, May 6, 2009 at 8:37 PM, BrendanC bren...@gmail.com wrote:
Jon - Good catch - however that was just a cut/paste problem - below
is a
Jorn - thanks for the responses - I resolved my problem - for the
record I had a mismatch between the versions of JQuery (1.3.2) and an
earlier (incompatible) version of the plugin. This was causing some
errors that I managed to track down with Firebug.
Downloaded the new version of the
JQuery newbie question re using validation plugin with Django newform.
I have a simple email feedback contact django form that I wanted to
enhance with some JQuery validation. I created a standalone (Non
Django) version of the form and it works correctly.
However when I create a Django version
You define rules for a field sender, but there is no input with name=sender.
Jörn
On Tue, May 5, 2009 at 7:28 PM, BrendanC bren...@gmail.com wrote:
JQuery newbie question re using validation plugin with Django newform.
I have a simple email feedback contact django form that I wanted to
Are the options, usage and limitations for the jQuery Validation rules
using metadata in markup, e.g., class=required date, documented
anywhere?
There is
http://docs.jquery.com/Plugins/Validation#List_of_built-in_Validation_methods,
but that is for setting up rules in the JS.
The list applies to metadata as well. You can specify any method as an
attribute, and where there are no parameters needed, use a class
instead.
Jörn
On Thu, Apr 23, 2009 at 9:49 PM, Brad nrmlcrpt...@gmail.com wrote:
Are the options, usage and limitations for the jQuery Validation rules
Thanks Jorn. Since I wrote I've been looking at the additional-
methods.js to get ideas on how to write some custom filter and found
this example:
class={required:true,vinUS:true}
Is that object syntax required when using custom filters as opposed to
simply
class=required vinUS?
re: where no
This requires the metadata plugin: class={required:true,vinUS:true}
This doesn't: class=required vinUS minlength=2
Jörn
On Thu, Apr 23, 2009 at 10:09 PM, Brad nrmlcrpt...@gmail.com wrote:
Thanks Jorn. Since I wrote I've been looking at the additional-
methods.js to get ideas on how to write
I'm trying to integrate the Validation plugin into an existing
project. The forms use AJAX and the buttons are not of type 'submit',
but type 'button'. If I change the type to 'submit' I can see
validation works, but doing so will require other code changes. Is
there any way to get it to work
Example form: http://jquery.bassistance.de/validate/demo/milk/
(this is the demo for the script on bassistance.de)
When it does 'live' validation (on blur) it tells the user if the
field is correct or incorrect. When you fill in the first field, tab
to the next field, go back to the previous
Ok, obviously we know what a min file is. But can someone tell me
for the jQuery plugin what does this min file restrict you from or
strip out from the main? What is filtered out? I need to know what
I'm getting or not getting compared to the main jQuery Validation .js
library.
minified files are just whitespace and line breaks removed, and object
names are shortened. Nevermind.
On Apr 14, 4:49 pm, expresso dschin...@gmail.com wrote:
Ok, obviously we know what a min file is. But can someone tell me
for the jQuery plugin what does this min file restrict you from or
Can someone help pls Thanks!!
On Apr 12, 12:32 pm, cohq82 quang...@gmail.com wrote:
I am new to jQuery validation plugin (http://docs.jquery.com/Plugins/
Validation). What I am trying to do is to have my own error message
DIV with display:none initially. If there is error, I want to run
Hi all,
Is there a way to validate username field (no space, only letters)?
I don't want to modify the code. I know this can be done easily with
if statement but I just want to see if the Validation plugin has this
feature already:
I am new to jQuery validation plugin (http://docs.jquery.com/Plugins/
Validation). What I am trying to do is to have my own error message
DIV with display:none initially. If there is error, I want to run the
fadein/fadeout to show that error.
The structure of the input/error DIV like
I'm using CakePHP, jQuery and the validation plugin. I'm having some
problems. I'm trying to check if a email is already in use but I can't
seem to get it too work.
I'm just trying to get a error message to see that it works but I
can't seem to get it right.
Javascript:
Can this plugin be used when there is no actual submit, just redirect
via a tag. However before doing redirect I need to make sure that
value entered in the filed is valid?
I've started to use the validation plugin for form validation. But I
don't want it to show the label error messages. I just want to change
the inputs background and border color. I don't know how to disable
the label messages so if someone could help me with that, that would
be super.
Hi,
Have anyone been able to use the jQuery validation script and been
able to make the buttonclick cause a post back? The form validates
fine but the post is never made. If I add the option submitHandler on
the plugin it goes in there, but that does not really help as i dont
want to do a ajax
I'm using the validation plugin at http://bassistance.de. When form
validation fails, focus goes to the first invalid element. But I have
a summary error message at the top of the page which I want the user
to see. If the first invalid field is too far down, they don't see the
message. How can I
Thanks.
It gives me an error saying element.attr is not a function
What is wrong with this:
highlight: function(element, errorClass) {
if (element.attr(name) == aupairLanguageList)
$(#multiSelect-aupairLanguageList-title).addClass(error);
},
unhighlight: function(element,
Hello,
Thanks for building this validation plugin, I like it. I have a
question:
The error class automatically gets added to the label with the same
for= name, but for a certain error I need to change the element that
gains the error class.
For instance, I added this line to the error
Use the highlight and unhighlight options for that.
Jörn
On Thu, Mar 26, 2009 at 3:21 PM, markstegg...@googlemail.com
markstegg...@googlemail.com wrote:
Hello,
Thanks for building this validation plugin, I like it. I have a
question:
The error class automatically gets added to the label
Zach,
Try adding rules via the Validate method like so:
$(document).ready(function() {
$(#aspnetForm).validate({
rules: {
TitleField: {
minlength: 2
}
}
});
});
This worked
Hi
You are not placing the # in front of the form id as jquery requires.
I do that all the time!!!
On Mar 24, 12:26 pm, Zach zachary.hun...@gmail.com wrote:
I've tried to get this to work for the past 4 hours and I'm stuck.
I've got a master page with the following scripts added.
I've tried to get this to work for the past 4 hours and I'm stuck.
I've got a master page with the following scripts added.
script type=text/javascript src=/RohmPortal/scripts/
jquery-1.3.2.js/script
script type=text/javascript src=/RohmPortal/scripts/
jquery.validate.js/script
this is
Hi --
I've got a contact form here
http://www.dianlofton.com/contact.shtml
...using the jquery.validate.js plugin. The form has an optional input
for a phone number, which I'd like to have validated -- but only if
there is info in the input. If you look at the source code for that
page, you'll
Thank you!
--Carl.
On Mar 11, 7:54 am, Jörn Zaefferer joern.zaeffe...@googlemail.com
wrote:
add if (this.optional(element)) return true; to the top. See any
existing validation method for an example,
orhttp://docs.jquery.com/Plugins/Validation/Validator/addMethod
Jörn
On Wed, Mar 11,
Hi,
I want to validate form and submit it via JavaScript even if it isn't
valid, and don't do it if the submit button is pressed
$(document).ready(function() {
validator = $(#editUserForm).validate(
{
focusInvalid: false,
I have an odd thing happening with the Validation Plugin (latest build
on JQuery 1.3). I have several forms setup on a page, with validation
on two. My first works fine, but my second keeps giving me errors in
Firebug about 'too much recursion'. The configs for these two form
validations are
using validation plugin, is there a way to validate checkbox group that has
different name attributes? i would like to make sure that at least one
checkbox has been selected but i'm not sure how to do it because they all
have different names.
thanks
--
View this message in context:
This solved it! Thanks a lot for the help Jörn!
On Jan 28, 12:34 am, Jörn Zaefferer joern.zaeffe...@googlemail.com
wrote:
I'm sorry, but you have trailing
commas:http://www.pluralsight.com/community/blogs/fritz/archive/2007/06/19/4...
I hope its not too late :-)
Jörn
On Tue, Jan 27,
Hi
Can some one please tell me if I can use validate plugin if saomething
is written in textbox by default ?
I have a textbox which is using auto complete p[lugin , so when page
loads an auto-suggest keyword always written in textbox and if some
user clicks that keyword,it disappears ...
I want
Hi Everybody
I am trying to use validation plugin with ui tbas.
suppose I have 5 tabs on page and every tab have submit button in
that case how can I use validation plugin...
I know i can use validation as:
('#form-id').validate();
but since i have 5 tabs but i cant have 5 forms in
I'm sorry, but you have trailing commas:
http://www.pluralsight.com/community/blogs/fritz/archive/2007/06/19/47771.aspx
I hope its not too late :-)
Jörn
On Tue, Jan 27, 2009 at 11:46 PM, whtthehecker hecker.r...@gmail.com wrote:
Hi,
This is my first time using the validation plugin for
Hi,
This is my first time using the validation plugin for jquery and i've
got it working in firefox but when i test in IE it's not working. Here
is the page: http://rickhecker.com/test/login-sign-up/index.html
I'm sure it's something stupid that I'm doing because I don't see
anyone else having
Thanks again to Jorn for a fantastic plugin. One thing I noticed, with the
additional-methods.js file that is included with the download, is a small
error with the messages for the maxWords, minWords, and rangeWords methods.
They are missing $.format():
jQuery.validator.addMethod(maxWords,
i have a group that contains both first and last name. i'm wondering if it is
possible to have custom messages for groups. i'm trying to achieve something
to the following:
a. if both first and last name are not filled in: First and Last name are
Required
b. if only first is filled in: last
Hi,
I have been using a prototype form validation
http://tetlaw.id.au/view/javascript/really-easy-field-validation
but I now wish to go to jquery.
I can get it working but there is something i can't get to work and it
was the best feature of the prototype script mentione above.
I would like
It appears that you are confusing display: none with type=hidden
they are two totally different controls
if you have
input id=Name1 type=text class=reqired value= /
and you set it to display: none when the checkbox is checked... for
instance, saying $(#Name1).hide()
then the selector
How can I create a rule in the validation plugin to disallow negative
numbers. I have a text field that should accept any number 0
thanks,
A.
Is there a way to instruct the validation plugin to not insert any
error element?
playing around with it.
don't want to get error messages displayed.
i'm just putting in a general error message at top and highlighting
required fields.
but the label for errors gets created with a display: inline set on
the element which is
thwarting me from not showing it.
looking at the
Hi!
I try to use Zend Framework with JQuery validation plugin. Standard
validation of forms works good but when I want to remote validate (f.e
check a login in database) remote function dosen't work. Below I write
a code with method from controller and views listing:
Method from controller
Can you post a testpage?
Jörn
2008/10/16 Namrasit [EMAIL PROTECTED]:
Hi!
I try to use Zend Framework with JQuery validation plugin. Standard
validation of forms works good but when I want to remote validate (f.e
check a login in database) remote function dosen't work. Below I write
a code
2008/10/16 Namrasit [EMAIL PROTECTED]:
Hi!
I try to use Zend Framework with JQuery validation plugin. Standard
validation of forms works good but when I want to remote validate (f.e
check a login in database) remote function dosen't work. Below I write
a code with method from
Using the Validation plugin (http://docs.jquery.com/Plugins/
Validation/)
I've got checkboxes like this:
input type=checkbox name=q4 id=q4 value=1 /
input type=checkbox name=q4 id=q4 value=2 /
input type=checkbox name=q4 id=q4 value=3 /
input type=checkbox name=q4 id=q4 value=4 /
input
Hi, I am using Jquery plugin for client side validation. But due to a
filedname I am facing a problem.
Example
var validator = $(#UserSignupForm).validate({
rules: {
data[User][username]: {
required: true,
same problem in many plugins becuase CakePHP return name
like data[User][username] so How can I override a name from ID?
Please Help me
Thanks
--
View this message in context:
http://www.nabble.com/change-filedname-from-ID-in-jquery-validation-plugin-tp19940820s27240p19940820.html
Sent from
Done:
http://jqueryjs.googlecode.com/svn/trunk/plugins/validate/localization/messages_it.js
Jörn
2008/10/5 Jörn Zaefferer [EMAIL PROTECTED]:
Could you sent that as file js file to me?
Thanks
Jörn
On Sun, Oct 5, 2008 at 1:58 PM, caruso_g [EMAIL PROTECTED] wrote:
Thanks a lot for your
Thanks a lot for your translation, just some typos/errata:
email: Inserisci un indirizzo mail valido.,
should be
email: Inserisci un indirizzo email valido.,
number: Inserisci un numero valida.,
should be
number: Inserisci un numero valido.,
equalTo: Il
Could you sent that as file js file to me?
Thanks
Jörn
On Sun, Oct 5, 2008 at 1:58 PM, caruso_g [EMAIL PROTECTED] wrote:
Thanks a lot for your translation, just some typos/errata:
email: Inserisci un indirizzo mail valido.,
should be
email: Inserisci un indirizzo email
filename: messages_it.js
/*
* Traduzione dei messaggi di default per il pugin jQuery validation.
* Language: IT
* Traduzione a cura di Davide Falchetto
* E-mail: [EMAIL PROTECTED]
* Web: www.d4solutions.it
*/
jQuery.extend(jQuery.validator.messages, {
required: Campo obbligatorio.,
Aah! *Slaps forehead* I found the problem! I was creating the
validation rules and messages by referring to the id's of the form
fields, while I should just reference their names! Everything's
working now, thanks for your time.
Jeroen
On 2 okt, 03:24, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
Could you summarize the problem again? I looked at the testpage and
couldn't see anything wrong with it.
Jörn
On Tue, Sep 30, 2008 at 6:16 PM, Jeroen Coumans [EMAIL PROTECTED] wrote:
Could it have something to do with the fact that each id starts with
edit-? When I try it with manually
Drupal generates input fields with an id like edit-profile-name. The
jQuery validator plugin seems to ignore those fields completely, at
least on the form at http://lab.jeroencoumans.nl/register/ (which is
the generated HTML from a custom Drupal registration form). Quoting
the id when referencing
1 - 100 of 180 matches
Mail list logo