Sebastian,

 

Look at the following example:

http://www.pengoworks.com/workshop/jquery/autocomplete.htm

 

View the source code and look at the lookupAjax() and lookupLocal()
functions. You could call these functions during the onblur event to check
the value.

 

Just remember that is an asynchronous operation (and has to be,) so there’s
no way to prevent a user from leaving the field if an invalid value is used.
The only thing you can do is redirect them back there during the
onFindValue() method.

 

-Dan

 

  _____  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sebastián V. Würtz
Sent: Monday, June 11, 2007 8:04 PM
To: jQuery Discussion.
Subject: [jQuery] Autcomplete function help

 

I need to make some things when a value isnt given back in the autocomplete,
i mean, when the input loses the focus (blur), to make certain tasks, but
does not exist a function in the class for it, where I can implement a
species callback, maybe a onNoneFoundValue option? 

 

onItemSelect and onFindValue dont work

 

thx

sebastián

 

  _____  

Estoy utilizando la versión gratuita de SPAMfighter para usuarios privados.
Ha eliminado 2624 correos spam hasta la fecha.
Los abonados no tienen este mensaje en sus correos.
¡Pruebe SPAMfighter <http://www.spamfighter.com/les>  gratis ya!

Reply via email to