[jQuery] Re: Validation plugin - spinner while validating field?

2008-01-31 Thread Jörn Zaefferer


Rus Miller schrieb:

Also, I noticed that even though the 'Check URL' field on my form
(http://monovisiondesign.com/client/jquery/validate-url/form.php) is
not required, it still performs a remote call and a label.checked is
applied to the field when it's left empty.  Am I doing something wrong
or is there a way to prevent that?
  
Good point. Whats happening: The field is checked if it has any rules. 
If it hasn't, nothing happens. If it has, they are executed. Now the 
remote validation returns that the field is valid, because not required 
and nothing was entered, and the field is marked as valid.


Currently I see no reason to change that to not apply any message to 
the field at all in this case, which should be what you are looking for, 
right?


Let me know, otherwise I'll just fix that for 1.2.1.

Jörn


[jQuery] Re: Validation plugin - spinner while validating field?

2008-01-30 Thread Jörn Zaefferer


Rus Miller schrieb:

There is a label.error and a label.checked but does anyone know how I
would display a label.pending (perhaps with a spinner) while the
validation (especially a remote request) is happening?

Thanks.
  
You can still use jQuery's ajax events to display a busy-indicator: 
http://docs.jquery.com/Ajax_Events


I acutally considered a pending state for remote-validated-fields, but 
dropped the idea in favor of a lack of those useless spinner icons. I 
found the goal to make the remote validation as unobtrusive as possible 
to the user a more worthwhile goal.


Jörn



[jQuery] Re: Validation plugin - spinner while validating field?

2008-01-30 Thread Rus Miller

My issue is that remote requests, especially those involving an
external server, can take a second or two.   It's nice to give the
user an indication that something is happening, which is why a spinner
isn't 'useless'.  It would be great if someone could give me a push in
the right direction.

Also, I noticed that even though the 'Check URL' field on my form
(http://monovisiondesign.com/client/jquery/validate-url/form.php) is
not required, it still performs a remote call and a label.checked is
applied to the field when it's left empty.  Am I doing something wrong
or is there a way to prevent that?

On Jan 30, 1:17 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote:
 Rus Miller schrieb: There is a label.error and a label.checked but does 
 anyone know how I
  would display a label.pending (perhaps with a spinner) while the
  validation (especially a remote request) is happening?

  Thanks.

 You can still use jQuery's ajax events to display a 
 busy-indicator:http://docs.jquery.com/Ajax_Events

 I acutally considered a pending state for remote-validated-fields, but
 dropped the idea in favor of a lack of those useless spinner icons. I
 found the goal to make the remote validation as unobtrusive as possible
 to the user a more worthwhile goal.

 Jörn