Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
success, failure?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dorian  
View profile  
 More options Jun 16 2008, 2:07 pm
From: Dorian <dorian.sarnow...@gmail.com>
Date: Mon, 16 Jun 2008 11:07:00 -0700 (PDT)
Subject: [validate] success, failure?
Hi! I want to do something when input is correct and something else
when isn't. I found options 'success' and 'errorPlacement' which
aren't in documentation.

                errorPlacement: function(error, element) {
                        error.appendTo(element.parent());
                        doSomething();
                },
                success: function(label) {
                        doSomethingElse();
                        label.remove();
                }

Works well, but I don't like it. I must remove label in success,
because another way errorPlacement works only once (when validation is
ok and I change input to incorrect errorPlacement doesn't work). So,
Is there any different solution without removing label (something like
failure, which works similarly to success? Thanks and sorry for my
English.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[validate] success, failure?" by Jörn Zaefferer
Jörn Zaefferer  
View profile  
 More options Jun 19 2008, 11:07 am
From: "Jörn Zaefferer" <joern.zaeffe...@googlemail.com>
Date: Thu, 19 Jun 2008 17:07:58 +0200
Local: Thurs, Jun 19 2008 11:07 am
Subject: Re: [jQuery] [validate] success, failure?
You can use the showErrors-option for complete control over showing errors.

All options, including success and errorPlacement, are documented
here: http://docs.jquery.com/Plugins/Validation/validate#toptions

Jörn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "success, failure?" by Dorian
Dorian  
View profile  
 More options Jun 20 2008, 6:14 pm
From: Dorian <dorian.sarnow...@gmail.com>
Date: Fri, 20 Jun 2008 15:14:55 -0700 (PDT)
Local: Fri, Jun 20 2008 6:14 pm
Subject: Re: [validate] success, failure?
Thanks for that. I can't found it.

On Jun 19, 5:07 pm, "Jörn Zaefferer" <joern.zaeffe...@googlemail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »