Hi there.
I'm working on a quiz where you can submit another time your answers
(yes, I want them to win ;-).
But if you do so, I'd like to display a warning that tells you that
you have already submitted and that your new submission will erase the
previous one.
I've used the remote feature on the '
Hello,
So, I am using two custom methods, GreaterThan and LesserThan:
// custom code to for greater than
jQuery.validator.addMethod('greaterThan', function(value, element,
param) {
return ( value > jQuery(param).val() );
}, 'Must be greater than start' );
// custom code for lesser than
jQuery.va
I am using the jQuery Validation plugin in conjuction with the
jqTransform plugin to style the form.
I need to insert the error message after the "rowElem" div. I can do
that, but the problem is that for each input field I get all the error
messages form the other fields.
Example: if I got 3 requi
Hi guys,
I've been trying to work this out for about 7 hours - no exaggeration.
I just cannot seem to work it out :-(
I have used the sample code from "custom-methods-demo.html"
$.validator.addMethod("buga", function(value) {
return value == "buga";
}, 'Please en
Hello jQuery community,
What i'm trying to do is very simple yet it is probably not easy. I've
configured the validation plugin that it works the way i want it to
work. Now i want a kinda 'callout' action on on particular error that
i use the validation 'remote' option. In the message are i add c
Hi, I'm creating a step by step form using jquery ui tabs and
validation plugin, the problem is that I've got just one form ( and I
have to ) so on first step the form is validated but all errors an
others steps are displayed.
I'm using an approach of http://jquery.bassistance.de/validate/demo/mul
I'd like to trap for a field going from invalid to valid.
something like,
onchange: function(){
alert('Yay, the field is valid and you can follow instructions');
}
Is there something in the plugin that I can use to intercept this?
thanks!
Hi,
I got a form with a few fields. 2 of them are using remote validation.
So it's basically checking if username and email are already in
database.
The problem is those field seems to validate as soon has i click into
another field causing the error message to show up no mather if I did
put som
I'm using the jQuery Validate plugin.
I have a basic form that asks for someone's name:
When I enter the first character into the field, I get a Firebug
warning:
"The 'charCode' property of a keyup event should not be used. The
value is meaningless."
Is there a way to fix this?
i posted this to the plugin group, but it appears to be a dead forum
-- last post was february. i'm trying to combine features of these 2
demos:
http://jquery.bassistance.de/validate/demo/milk/
http://jquery.bassistance.de/validate/demo/multipart/
specifically, i want the ability to use custom e
Hello,
I am using the "milk" sample but cant seem to find how the error
message is styled AND where the "X" comes from.
Also, I use javascript:'' + window.document.body.outerHTML+ ''
to show a rendered page but it doesnt show the "X" thier either.
Thanks,
Mike
Take a look at the options related to error messages:
http://docs.jquery.com/Plugins/Validation/validate
Especially errorPlacement should be what you are looking for.
Jörn
On Wed, Aug 19, 2009 at 9:39 PM, Fong wrote:
>
> Hi all,
>
> I am using the jquery form validation plugin (http://docs.jquer
Hi all,
I am using the jquery form validation plugin (http://docs.jquery.com/
Plugins/Validation) to get some simple validation done on my form.
It's working perfect so far. When I set a particular form field to
have the class "required" that makes it so that it can't be blank and
when the user
I need to display a promotional message when the user clicks submit if
they meet certain criteria about their postcode. I have heard that you
should use the submitHandler but being completely new to JavaScript
and even newer to JQuery I am a little stuck on how I should write
this. I thought it wo
There isn't any example integration code, by the datejs.com library
provides very good date parsing.
Writing a custom method
(http://docs.jquery.com/Plugins/Validation/Validator/addMethod) using
datejs should be easy enough!
Jörn
On Tue, Jul 14, 2009 at 3:27 AM, Mr Fett wrote:
>
> I've been con
I've been continuing my search on this but still haven't found
anything - anyone else?
On Jun 23, 5:37 pm, Mr Fett wrote:
> Hi all,
>
> I've been using the fantastic validate plugin for a while now but I've
> always found the support for date validation sorely lacking as it
> really only checks
the validate plugin at the form at the below URL is validating as true
as long as the first required input is valid even though subsequent
required fields are invalid. It even gives the invalid class to all
fields correctly but the submitHandler function is triggered anyway.
I have an alert trigg
Hi,
I trying to replace my old AJAX system by the Validate plugin of
jQuery with the "remote" option.
There is a way to return a custom error message directly from the
server side script ?
For example, I have a "username.php" server side script that check :
- If the username is not used by some
Hi all,
I just wanted to let you know that I've been attempting to use the
jQuery validation plugin and the jQuery lightbox plugin together on
the same page and the inclusion of the jQuery validation plugin stops
lightbox from seeing all but the first REL="lightbox" tagged image.
I've put an exam
Hi all,
I've been using the fantastic validate plugin for a while now but I've
always found the support for date validation sorely lacking as it
really only checks that there are three numeric columns (i.e. nn/nn/
).
See here for the reference to this in the documentation:
http://docs.jquery
I want to remove spaces from pasted phone numbers into a phone number
field prior to the validation being run.
I've applied class="number" to the phone number input field, which
validates correctly when anything other than numbers are entered or
onsubmit.
I've also created an event handler that
I want to remove spaces from pasted phone numbers into a phone number
field prior to the validation being run.
I've applied class="number" to the phone number input field, which
validates correctly when anything other than numbers are entered or
onsubmit.
I've also created an event handler that
Hi,
I'm using jquery validation with asp.net. The problem is, I have the
search button and the comments button in the same form. When the users
want to write a comment, the validation works perfect, but when the
users want to make a search in the page, the required fields of the
comments doesn't
So while digging around in our group's past discussions centered
around the Validate plugin (which is awesome by the way), I found a
function that deals with the placement of the error message on an
invalid input. This was great because I needed to append the error to
the invalid input's parent l
hi,
is there any rule like
rule{
client: { notEqual: "newClient"; required:true}
}
and the field is required too.
This field is field.
I have option: select one and newClient , other client names.
Thanks in advance.
jQuery JavaScript Library v1.3.2
jQuery validation plug-in 1.5.2
I think I'm using this plug-in straight from the examples for a simple
form. No matter what I have as the last option I get a similar error,
in the case:
$("#short-form").validate is not a function
privacy_policy: "Please accept o
You need to trigger the validation by using jQuery's trigger method,
eg. $("#validateThis").submit();
Calling the DOM submit method directly avoids the validation.
Jörn
On Thu, May 7, 2009 at 7:30 AM, sjoerdm wrote:
>
> Im having trouble to validate my form because I'm missing a submit
> butto
Im having trouble to validate my form because I'm missing a submit
button inside the form, I submit my form by another link outside the
form.
save
...
Because I dont have a submit in my form the javascript doesnt get
triggered I suppose, when I place a submit button in my form
eve
Hi All,
I am trying to use the validate plugin to validate a form but it
does not work..Could you please let me know what i am doing wrong?
The page starts with a simple drop down asking for the user to
choose a category. Once the category is chosen, a div block becomes
visibile. WHen the
Wow, thank you.. I would've never found it, whenever I have a typo in
the code i need to have someone look at it or else I'll never find it!
Thank you again!
On Apr 1, 1:24 pm, Jörn Zaefferer
wrote:
> You've got a typo, minlenght, should be minlength.
>
> Details for the remote method are
> he
You've got a typo, minlenght, should be minlength.
Details for the remote method are here:
http://docs.jquery.com/Plugins/Validation/Methods/remote
A demo, including PHP examples, here:
http://jquery.bassistance.de/validate/demo/milk/
Jörn
On Wed, Apr 1, 2009 at 11:22 AM, david.0pl...@gmail.com
Hi, I'm sorry to bother, but I can't find enough documentation on this
plugin
I have this cose:
$(document).ready(function(){
$("#form_reg").validate({
rules: {
username: {required:true, minlenght:5,
remote:"check_user.php"},
password: {r
That worked. Thanks!
That worked. Thanks!
Sorry I couldn't wait for my other post to showup, so I made a typo:
jQuery Validation test
$(document).ready(function(){
$("#poesForm").validate({
rules : {
name: {
required : true
}
}
});
});
I have been trying all day to get the latest validate plugin to work
with the latest jquery. It works when I specify the keywords in the
class name, but when I try writing the code only in javascript {rules:
{}} nothing happens, no error no nothing just nothing. This is doing
my nut. The example b
how to just validate elements in a div
Does anybody know of a way to run a custom function on a specific
field if it is incorrect when validating an entire form?
TIA
Hi everyone,
I have a problem with my validation on my form in IE (6 AND 7)
This is a part of my form:
boy
girl
My Validation script:
jQuery.validator.addMethod("defaultvalue", function(value,
element) {
return this.optional(element) || element.defaultValue !
Use the submitHandler callback in the options.
http://docs.jquery.com/Plugins/Validation/validate#toptions
$(".selector").validate({
submitHandler: function(form) {
$("button").attr('disabled', 'disabled');
}
});
On Mar 4, 12:50 pm, Gigi wrote:
> When a user clicks the submit butt
When a user clicks the submit button and the form passes validation
I'd like that button to be automatically disabled.
I'd like to prevent users from double clicking on the button to
prevent double submissions.
Thanks!
Hello all,
I am using the jQuery Validate plugin (http://docs.jquery.com/Plugins/
Validation) and am running into an issue with the other javascript I
need to have running on the page. I have an Onclick event wired into a
radio button in the form, but when one of the required fields fails
When maxlength is set for textarea and the field is validated, the
plugin seems to consider line breaks within the textarea as two
characters at least in IE and Opera. That is because in IE and Opera,
the textarea string received with element.value contains line breaks
represented with two charac
Hi Folks,
Wondered if anyone could help on this, I've been stuck on it for quite
some time.
I'm trying to validate a date field using a UK date, here's my code:
$(document).ready(function(){
$('#arrival-arrival-date').datepicker({ minDate: new Date
(),defaultDate: +1,dateFormat: 'dd/mm/yy
Hi Folks,
Wondered if anyone could help on this, I've been stuck on it for quite
some time.
I'm trying to validate a date field using a UK date, here's my code:
$(document).ready(function(){
$('#arrival-arrival-date').datepicker({ minDate: new Date
(),defaultDate: +1,dateFormat: 'dd/mm/yy
On my site http://www.chris-gwen.com/ I use the plugin on the RSVP
tab. If you click the "Accept" radio button you get a dropdown. How
can I then set validation on that select only when the accept button
has been clicked?
Hello, I'm developing an open source banner server, and I encountered
a strange behaviour.
First of all the banner system uses jquery (apart from validation) to
rotate the banners, using this code:
var image_count;
var current_image=0;
$(document).ready(function(){
image_count = $("div.img-rot
hi all - so I'm using the 'validate' plugin, and I seem to have an
issue where if I have multiple forms, the plugin only validates the
first form.
$('.validate').validate();
Obviously I have multiple forms, so I'm using a class selector. But
when I'm testing the form, the validate plugin throws
Hello,
I need to validate password fields. I got this list of requirements
what a password can be, among them: it has to contain numbers.
How can I validate if the password contains numbers or not.
I thought the built in numbers() method would do it for me. but it
seems it requires the st
hi,
Like others I seem to have ran into the "double-click to submit
problem". Allow me to explain:
I have a registration form which validates just fine using the
excellent validate plugin. It's working perfectly. However, I now want
to run some custom code after the validation event. Specificall
On Fri, Jan 2, 2009 at 8:19 PM, nate wrote:
>
> Brian
>
> thanks for the tip. I tried both single and double quotes but that
> didn't work.
hmmm ... I just found this in the docs:
http://docs.jquery.com/Plugins/Validation/Reference#Fields_with_complex_names_.28brackets.2C_dots.29
Did you also
Got it working with "data[UserContactDetail][phone]": {phoneUS:
true}
and instead of using echo $form->input('phone'); to generate the code
I manually typed . I
am unsure as to why the auto generated field doesn't work since it
looks the same to me.
Brian
thanks for the tip. I tried both single and double quotes but that
didn't work.
On Fri, Jan 2, 2009 at 2:32 PM, nate wrote:
>
> Jörn,
>
> Thanks for your response.
>
> I got it to submit with
>
> submitHandler: function(form) {
> form.submit();
> },
>
> now I have a problem when using the cakephp form helper.
>
> This works with the manually created input
>
Jörn,
Thanks for your response.
I got it to submit with
submitHandler: function(form) {
form.submit();
},
now I have a problem when using the cakephp form helper.
This works with the manually created input
rules: {
phone: {ph
Could you post a testpage?
Jörn
On Fri, Jan 2, 2009 at 3:31 AM, nate wrote:
>
> I am using the jQuery Validate plugin with a form in cakePHP. When I
> click submit the form is validated but not submitted to the server.
> When I change the form name From user to user1 it submits
I am using the jQuery Validate plugin with a form in cakePHP. When I
click submit the form is validated but not submitted to the server.
When I change the form name From user to user1 it submits properly so
it seems that once the form is bound to the javascript it stops
submitting the data
I have a simple form with one select list as it's element. I am using
the validate plugin to do remote ajax validation on that element. The
response returns a true or false.
This all works fine, but the problem is that the validation takes
place when you click the submit button, since there are
I need to validate a field to only accept A-Z,a-z
I don't see a built in rule for this. How would I go about adding my
own rule?
Any help is much appreciated!
hello all,
I have a date filed that needs to be validated only for one type of
date format: mm/dd/yyy.
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
the validate plugin's date() method validates all sorts of date formats.
is there a way to restrict that to only one format?
do
Hi, I'm using the validate plugin, I have a comment form where I want to
leave the possibility to insert an anonymous comment, but I want to
alert the user before the submit.
Then, if I have this code, what I have to do, to add a confirm('Are you
sure')?
I'm looking for a method like "onBef
hi
first, I want to say how cool this validation plugin is, very slick -
especially like the eager validation aspect.
I use CakePHP, and I am trying to check a "terms" box is checked, but
CakePHP outputs the HTML like so:
do you agree to the terms?
because of the names being identical, I h
I'm doing something similar to this example:
http://docs.jquery.com/Plugins/Validation/Methods/required#dependency-callback
I have a date input field, and if you are under 13, it pops up another
field for parent's age.But unlike this example,I want the parent to be
required to be 18 or older.How
I need to perform a custom action when it turns invalid.
Currently, I have this:
success: function(label) {
label.html("good").parent('div').removeClass('bad').addClass('good');
},
Ideally, I would just do:
failure: function(label) {
// set as text for I
hi
i'm giving a go at codeIgniter using jquery for the js side.
So i got a form which i validate with the validate plugin but in CI
when i submit the form the js starts a loop and i must shut down the
browser.
I read somewhere that it could be because the validate plugin use the
GET method by defa
hi
another little issue in my long form:)
i got 5 couples of radio button:
The validation rule against them must be:
- at least one radiobutton with value 'si' must be checked.
I added a classRule but apparently this doesn't work for
radiobuttons.
$.validator.addClassRules({
c
Hi All,
I just started working with the validate plug in and I am having a
interesting problem. I am validating input text tag that is the
second column in a four column table. The error message is being
displayed in the third column. The txtCC2 is the problem at this
point.
Here is my code.
Looks like the default email validation isn't of the correct version.
My team is going with this as a custom validator, but the validate
plugin might want to update
http://en.wikibooks.org/wiki/JavaScript/Best_Practices
Hi all,
About to use Jorn's validation plugin on a project but I'm splitting the
form into two parts. The user fills in the top half, clicks a button and
- if it validates - the second half of the form is shown.
My question then, is it possible to only partially validate a form using
the val
Hello,
For some reason I am receiving the following two errors in Firebug when
attempting to load a form that makes use of the Validation plugin. I am
using this in a number of places without any errors, so this has me a bit
confused. I even commented out all of the form fields and any other
scr
Sorry for the double posting, but the other subject was vague...
There needs to be a check for value !== null in the attributeRules
method of the jquery.validate plugin. It bombs otherwise when
collecting the rules . Not sure if this is because of using the 1.2.5
jq release.
Also I have a patch h
I have a form with two submit buttons.
On the server side I have a PHP script that ichecks if $_POST
['cancel'] has a value. If it doesn't then it runs through the form
submit process. If it does have a value then it simply redirects to
another page without processing the form.
My problem i
I'm trying to apply jquery.validate to a form with an input field of
type file. I thought I could make it required and accept only .html
files, but no matter the value of the field it always got marked as
being invalid.
I thought maybe my syntax was wrong in the metadata (I was using
class="requ
Hi,
I'm trying to build a web framework utilizing the great work thats
already been done on the validation plugin. I'm trying to use metadata
to specify my rules. I'm having a problem overriding the default
messages for multiple rules via metadata. It appears as though I can
only specify one gene
I'm using jQuery Validate (v. 1.2.1) on a page with several forms. I iterate
through the forms using each(). The validation is working but when I try to
append a loader (using ajaxStart()), it's appended to the wrong div (always
on the second form).
The code:
$(document).ready(function() {
**Apologies for the repost; had to correct the subject line. Anyone
know why text in square brackets is removed when posting via Google
Group's web form?
Hi Jörn,
I believe I've discovered a backward compatibility break when
upgrading from 1.1.2 to 1.2.1 of the Validate plugin. After a few days
With the Validate plugin, when settings.submitHandler is set and user
tries to submit the form, the script intercepts this and will always
block the submission (by returning false from the onsubmit event).
This can easily be extended to allow the submitHandler function to
return a boolean value,
Sorry for my previous email talking about the limitation of Validate
plugin with 50 or more elements to validade. Is not an error but the
script stops in this line
line 487
lem.tagName && elem.ownerDocument && !elem.ownerDocument.body;
jquery-1.2.1
--
[]´s Jean
www.suissa.info
Ethereal Age
Is a limite of how much inputs we can validate? I have a form with 52
questions what is {required:true} very required. In a 29 questions
required it works fine!
--
[]´s Jean
www.suissa.info
Ethereal Agency
www.etherealagency.com
Hi!
has anyone written a validator for a minimum length and alphanumeric
password for the validator plugin?
Thanks
Hi all,
I thought I'd give you all (and Joern also) a heads-up on a problem I've
been having.
I use the validate() plugin on forms whose tags have names like
'user[email]'.
The 'rules' option to validate() has no problem with this, but I've now
started passing an array of server-side errors to sh
Hi all,
I wonder if someone can tell me if there's a problem in Validate
plugin or if it is the normal behaviour in which case I'm probably
missing an option.
As you can see here :
http://www.amigrave.com/upload/posts/jquery/validate.htm
When you submit the form once (without filling fields),
Hi Everyone,
I had an earlier problem that I asked about a couple days ago, turns
out it was just formatting bugs, but now I have a couple more.
Here's the problem:
I'm trying to use the form plugin, the validate plugin, and thickbox
together. The thickbox window has the form in it, which is load
83 matches
Mail list logo