[jQuery] form validation

2010-01-06 Thread John Albright
Is it possible to use the jquery form validation plugin (http:// bassistance.de/jquery-plugins/jquery-plugin-validation/) to validate a form that was inserted into the page via javascript? What I'm trying to do is display a person's address, which is contained in a span tag, and give them

Re: [jQuery] form validation

2010-01-06 Thread brian
form validation plugin (http:// bassistance.de/jquery-plugins/jquery-plugin-validation/) to validate a form that was inserted into the page via javascript? What I'm trying to do is display a person's address, which is contained in a span tag, and give them the option to edit it. If they click

[jQuery] form validation: compare two values

2009-11-12 Thread barbara
I have a form with 2 fields, the minimum number of people needed for an event to happen and the maximum number who can register. I want to validate that the maximum is greater than or equal to the minimum. I don't immediately see how to do that with the validation plugin, but it ought to be

[jQuery] Re: jQuery form Validation plugin with JSP

2009-11-03 Thread James
The value you return should be simply just true or false. No HTML or other stuff. Not: html headtitleRemote Email Validator/title/head body true /body /html or: html headtitleRemote Email Validator/title/head body false /body /html Just: true or: false Notice the difference?

[jQuery] jQuery form Validation plugin with JSP

2009-11-02 Thread Felix
I have a static html page for testing and the remote field is wired correctly with email as the following rules: { FirstNameEdit: { required: true }, LastNameEdit: { required: true }, EmailEdit: { required: true, email: true, remote: emails.jsp } ,

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-13 Thread Sam
How to change the default position of an error message in Jquey form validation plugin? This is easy to do. Just create a label element where you want the error message to appear. If the field you are validating is called foo your label would look like: label for=foo class=errorThis field is

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Don Dunbar
to Both A and B at the same time. How to implement this constraint in Jquery form validation?

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Satyakaran
A or B is required. ( A is required  OR B is required). In other words, a user can input data to field A, or he can input data to filed B, but he can not input data to Both A and B at the same time. How to implement this constraint in Jquery form validation?

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Phper
at the same time. Either A or B is required. ( A is required  OR B is required). In other words, a user can input data to field A, or he can input data to filed B, but he can not input data to Both A and B at the same time. How to implement this constraint in Jquery form

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Don Dunbar
. ( A is required OR B is required). In other words, a user can input data to field A, or he can input data to filed B, but he can not input data to Both A and B at the same time. How to implement this constraint in Jquery form validation?

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Phper
to implement this constraint in Jquery form validation?

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Gordon
at the same time. How to implement this constraint in Jquery form validation?

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Phper
. ( A is required  OR B is required). In other words, a user can input data to field A, or he can input data to filed B, but he can not input data to Both A and B at the same time. How to implement this constraint in Jquery form validation?

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Phper
. How to implement this constraint in Jquery form validation?

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Phper
. How to implement this constraint in Jquery form validation?

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread d...@amystdesign.com
in Jquery form validation?

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Don Dunbar
input data to filed B, but he can not input data to Both A and B at the same time. How to implement this constraint in Jquery form validation?

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-11 Thread Don Dunbar
is required). In other words, a user can input data to field A, or he can input data to filed B, but he can not input data to Both A and B at the same time. How to implement this constraint in Jquery form validation?

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-11 Thread Phper
. How to implement this constraint in Jquery form validation?

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-11 Thread Don Dunbar
to Both A and B at the same time. How to implement this constraint in Jquery form validation?

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-11 Thread Phper
at the same time. Either A or B is required. ( A is required  OR B is required). In other words, a user can input data to field A, or he can input data to filed B, but he can not input data to Both A and B at the same time. How to implement this constraint in Jquery form validation?

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-11 Thread Phper
time. How to implement this constraint in Jquery form validation?

[jQuery] Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-10 Thread Phper
A and B at the same time. How to implement this constraint in Jquery form validation?

[jQuery] Form Validation errorplacement

2009-10-01 Thread slimshady
please read http://codepad.org/MBcrgq7U

[jQuery] Form validation

2009-10-01 Thread Dave Maharaj :: WidePixels.com
I cant get the validation in my form to work. Using malsup to sumbit and trying to add validate.js plugin but it wont work. I can submit the form on its own but adding the validation breaks it. I followed the examples for the validate but what about bind submit? Surely someone has sumbitted a

[jQuery] Form Validation

2009-09-30 Thread Samuurai
Hi, I have got some very rudimentary validation working with JQuery validation, however, by default, it creates some label tags with the error messages in them, right next to the input tags which have errors. How can I control where these error messages are displayed, as they're inside the same

[jQuery] Form Validation

2009-07-31 Thread Ratheesh
Hi, In my jquery validattion, the control which is invalid doesnt get focus.. Do you guys know what the reason is..? Thanks in advance Ratheesh

[jQuery] Re: jQuery Form Validation

2009-07-27 Thread Tuppers360
Thanks for that! I thought of doing something like that but it means validating twice really so I was thinking that when the validation call is done and the field, whatever it may be is correct then it removes the span. Problem is I dont get where the plugin adds the checked class I know that it

[jQuery] Re: jQuery Form Validation

2009-07-27 Thread Tuppers360
Well I have sorted the problem of the span when there is a sucess on the input. I have added these two lines to the success method: label.prev('form :input').addClass('valid'); $('form :input').filter('.valid').prev('label').find('span').hide(); My problem is now that when there is an on the

[jQuery] jQuery Form Validation

2009-07-26 Thread Tuppers360
Hi there just wondering if I can get some help from you guys? I have some code as per: // validate signup form on keyup and submit var validator = $('form').validate({ event: 'keyup', rules: { '%= ddlRank.UniqueID %': {

[jQuery] Re: jQuery Form Validation

2009-07-26 Thread FrenchiINLA
how about $('input[type=text]').keyup(function() { if ($(this).val().length == 2) { $(this).prev().find('span').empty(); } }); On Jul 26, 10:36 am, Tuppers360 tuppers...@sky.com wrote: Hi there just wondering if I

[jQuery] Form validation using the validate plugin

2009-07-15 Thread pocket
Rather than write my own validation I thought i would use JQuery instead however i'm not finding this easy either. I have a few questions which I hope someone can answer. Firstly, the error messages are only appearing when I click submit. How can I get them to appear after exiting each field?

[jQuery] Form Validation Plugin: customize input validation

2009-06-21 Thread Loony2nz
This is in regards to Jörn Zaefferer's plug in. How do you customize input validation so that I can remove foul language? So that first name or last name doesn't have f*ck you or something like that. is this possible? Thanks!

[jQuery] Form validation - Add http:// to text field if user forgot it

2009-05-28 Thread P
In my form I have a couple of text fields into which the user enters links. input type=text name=link1 id=link1 / input type=text name=link2 id=link2 / input type=text name=link3 id=link3 / Now I want to create a function that runs after the user has entered a link. It should automatically add

[jQuery] Form Validation - upload file width

2009-05-12 Thread Albert Kidd
Hi, I would like to use jquery to validate on the server side to make sure the uploaded image is 400px by 300px. Is this possible. AK

[jQuery] Re: jQuery Form Validation

2009-04-15 Thread NobitaNobi79
Hi Jörn and others jquery forum readers, So, is there anything wrong with the script? It still doesn't work when email field is empty; fine with both validating the field when there is input. onblur=alert($(#field).valid()) gives me 0 when empty. $(document).ready(function(){

[jQuery] Form validation plugin

2009-04-15 Thread koolkat
I have been using the form validation plugin with jquery 1.2.6. I would like to use the new jquery version 1.3.2 but was wondering if there is a replacement validation plugin for this version or if it could be made to work. Thank you.

[jQuery] Re: jQuery Form Validation

2009-04-12 Thread Jörn Zaefferer
Just remove the required-rule. All other methods include a check to make a field optional when empty. Jörn On Sat, Apr 11, 2009 at 7:16 PM, NobitaNobi79 frankcheun...@gmail.com wrote: Hi, I am new to jQuery. I follow the example on http://docs.jquery.com/Plugins/Validation/Methods/email to

[jQuery] Re: jQuery Form Validation

2009-04-12 Thread NobitaNobi79
It still doesn't validate when the field is empty. Yes, I removed required: true, in $(#myform).validate({ rules: { field: { required: true, email: true } } }); The code is exactly the same just without the required: true, line as belows. And if I modified the input

[jQuery] jQuery Form Validation

2009-04-11 Thread NobitaNobi79
Hi, I am new to jQuery. I follow the example on http://docs.jquery.com/Plugins/Validation/Methods/email to add rules to a form validator. When I modified the rules to email: true (required: false), the script seems to stall there, no error message nor a check. Can someone tell me if I am doing

[jQuery] Form validation help

2009-04-06 Thread Brad
Can anyone tell me how to validate a form field with a Minimium(2) characters required? Here is what I have below, thank you in advance for your help! $().ready(function() { // validate signup form on keyup and submit $(#signupForm).validate({ rules: {

[jQuery] Re: JQuery form validation not working with jsp

2009-03-30 Thread Jörn Zaefferer
Looks like you copied too much demo code. Remove the errorPlacement-option - you don't have a table layout. Jörn On Sat, Mar 28, 2009 at 5:09 PM, Smruti Pragyan Misra smruti...@gmail.com wrote: Hi John,    Thanks for ur reply.presently I am able to call validate() method for both

[jQuery] Re: JQuery form validation not working with jsp

2009-03-28 Thread Smruti Pragyan Misra
Hi John, Thanks for ur reply.presently I am able to call validate() method for both the fields.But it's not working with following code. ?xml version=1.0 encoding=UTF-8? %@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt% %@ taglib prefix=html tagdir=/WEB-INF/tags/html% %@

[jQuery] JQuery form validation not working with jsp

2009-03-26 Thread Lucky
Hi, I am new to JQuery , can anyone tell me any example ,how to do form validation for JSP. I have two text box one for Subject and another one for email Id . Thanks, Lucky

[jQuery] Re: JQuery form validation not working with jsp

2009-03-26 Thread Jörn Zaefferer
Same as for any other backend, eg. pick a validation plugin ala http://docs.jquery.com/Plugins/Validation and follow the examples. Come back with any specific questions. Jörn On Thu, Mar 26, 2009 at 8:01 PM, Lucky smruti...@gmail.com wrote: Hi,       I  am new to JQuery , can anyone tell me

[jQuery] Custom Error placement with jQuery form validation??

2009-03-16 Thread Chris K
I am using jQuery form validation and it works great, but it displays the error message to the right of each form element. I actually want the error message for each form element to be in a specific div that I customize. For example: input type=text name=firstname div id=name_errors/div

[jQuery] Re: JQuery Form Validation Fancybox

2009-03-12 Thread Jörn Zaefferer
See http://jquery.bassistance.de/validate/demo/milk/ Jörn On Wed, Mar 11, 2009 at 10:19 PM, MonkeyBall2010 hughes.timo...@gmail.com wrote: I think I figured out the passing part. If I am reading the documentation correctly it seems that the variable is retrieved in your PHP file via the

[jQuery] Re: JQuery Form Validation Fancybox

2009-03-12 Thread MonkeyBall2010
Sweet, that's exactly what I was looking for! Thanks so much for the help. Tim On Mar 12, 4:15 am, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: Seehttp://jquery.bassistance.de/validate/demo/milk/ Jörn On Wed, Mar 11, 2009 at 10:19 PM, MonkeyBall2010 hughes.timo...@gmail.com

[jQuery] Re: JQuery Form Validation Fancybox

2009-03-12 Thread MonkeyBall2010
So I have the validation working with an AJAX submit thanks to all of your help. To what extent are my options once the AJAX submit has occurred? I am trying to redirect the user to a new page but only after the validation has occurred and after the data has been uploaded to the database. Is it

[jQuery] Re: JQuery Form Validation Fancybox

2009-03-11 Thread Jörn Zaefferer
Dunno about Fancybox, but you can use the remote method to check the username: http://docs.jquery.com/Plugins/Validation/Methods/remote Jörn On Tue, Mar 10, 2009 at 11:53 PM, MonkeyBall2010 hughes.timo...@gmail.com wrote: You'll have to forgive me if this question sounds easy but I am fairly

[jQuery] Re: JQuery Form Validation Fancybox

2009-03-11 Thread MonkeyBall2010
Thanks! Now how do I use it?!?! Hahah. Specifically, let's say I wanted to check on the availablility of an email address. How do I pass that email address to my PHP script? I couldn't seem to locate an example on the server side script, only the JS. Tim On Mar 11, 3:11 am, Jörn Zaefferer

[jQuery] Re: JQuery Form Validation Fancybox

2009-03-11 Thread MonkeyBall2010
I think I figured out the passing part. If I am reading the documentation correctly it seems that the variable is retrieved in your PHP file via the $_GET[var] command (does this seem correct?). Now I have the ability to check the database for availability but then I'm stuck again. So the

[jQuery] JQuery Form Validation Fancybox

2009-03-10 Thread MonkeyBall2010
You'll have to forgive me if this question sounds easy but I am fairly new to jQuery so I'm still learning things here. I'm trying to do the following: -Display a signup form with the Fancybox plugin (working) -Validate the form, currently using the bassistance Validation plugin (working)

[jQuery] Form Validation

2009-02-27 Thread ml2009
I have just started using jQuery and wonder if you could help me please. I am working on a form which contains a field to enter multi-email addresses. How could I validate this field using jQuery? This is what I would do if I were not using the jQuery library function multiEmail(my_emails) {

[jQuery] Form Validation - Display text area input...

2009-02-27 Thread Ena
back to change it if necessary. Is there a jQuery form validation that does this? I can't seem to find it. Thanks, Ena

[jQuery] Form Validation

2009-01-25 Thread issya
Hello, I am using a few plugins together for AJAX forms and validation. I have validation on the name and phone fields. If you add a class of required to the fields, the validation plugin will automatically validate them. If you want to do more advanced validation you have to tell it so. I have

[jQuery] Form validation, not typical name of input.

2009-01-12 Thread grassoalvaro
Hi, i have problem with validation for my form. For example: form id=valid input type=text name=data[Order][login] / /form $('#valid').validation({ rules: { 'data[Order][login]': 'required', } }); The validation method above dosn't work. Where is the problem? With not typical name of input?

[jQuery] Re: JQuery Form Validation and Insert into Database problem

2008-12-27 Thread Jörn Zaefferer
Put your submit code into the submitHandler-callback. See this demo for an example: http://jquery.bassistance.de/validate/demo/ajaxSubmit-intergration-demo.html Jörn On Fri, Dec 26, 2008 at 4:50 PM, avances vance...@gmail.com wrote: I have two scripts, one validates the form and the other

[jQuery] JQuery Form Validation and Insert into Database problem

2008-12-26 Thread avances
I have two scripts, one validates the form and the other enters the data into a SQL database without a page refresh. Both scripts work fine on there own... How can I combine them so the form validates and then inserts when form is free of errors. Please see the two scripts below. I suspect it be

[jQuery] Form Validation JQuery $_POST issues

2008-11-03 Thread jtingato
I am not a javascript or Ajax programmer, so JQuery is new to me. I have taken over the completion of a website for a friend and have hit a strange occurance. The site designer utilized CodeIgniter framework and it appears well wriiten and well commented. Here's the Issue: Thers a form in a

[jQuery] form/validation plugin questions

2008-10-10 Thread cambazz
Hello, I am using form and validation plugins successfully. I was wondering: a) how can I make an error message show at a custom location? for example when validating an email, it will just add right next to the input element an error message as a generated label. how can I make error messages

[jQuery] Form Validation Plugin Required Dependency Expression Help

2008-06-13 Thread [EMAIL PROTECTED]
Hey everyone, I was wondering how to go about structuring validation code for my situation: I have 3 fields - all input fields I need to do the following: Check all values of the input fields and make sure at least one of the 3 fields are filled out (2 url's and 1 input type=file) I did find

[jQuery] Re: jQuery Form Validation Plugin with Rails

2008-02-24 Thread Jörn Zaefferer
jmcervera schrieb: Hello, This is my first post in this group. I am trying to use the Form Validation Plugin with Ruby on Rails, and I can´t make it work. It seems only working with forms using the 'get' action, not with 'post. An this goes against the REST principles of the architecture I am

[jQuery] jQuery Form Validation Plugin with Rails

2008-02-22 Thread jmcervera
Hello, This is my first post in this group. I am trying to use the Form Validation Plugin with Ruby on Rails, and I can´t make it work. It seems only working with forms using the 'get' action, not with 'post. An this goes against the REST principles of the architecture I am using. Is there some

[jQuery] Form Validation Plugin - animating errorContainer

2007-10-31 Thread Web Specialist
Hi all how to animate errorContainer message with Form Validation plugin? I have this code and I'll want to animate it when occurs an error in my form: $(#frm).validate({ ... errorContainer: $(#messageBox), ... inside my form: div id=messageBox h5 class=msgerrThis form

[jQuery] Form Validation by generic class name

2007-07-20 Thread craveytrain
I have been using jQuery for a couple months and have been looking to use it as a common library for all my company's applications. I have also been evaluating the form validator plugin. I am trying to replace the JS validation library we have now with it. However, I can't figure out how to set

[jQuery] Form Validation

2007-06-05 Thread John Farrar
http://jquery.bassistance.de/validate/demo-test/radio-checkbox-select-demo.html This library looks great but there appears to be a few bugs. (Like on this page in IE7 and FF2 the validation failures push the list so you see one less item when the validation errors appear. Does anyone have a

[jQuery] Form Validation Plugin

2007-05-15 Thread Mandy Singh
Does jquery have a simple form validation plugin where I can define the rules for a field and respective error messages and throw all messages out to a common container on top of the form. No ajax just simple client side validations. The one I saw on the wiki is really huge and does all sorts of