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?
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
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
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
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(){
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
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
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
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%
%@
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
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
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
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
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
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
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
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
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
18 matches
Mail list logo