[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] 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] 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] 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] 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] 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] 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] 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] 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] 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