[jQuery] Autocomplete on blur
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16441" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>i want to lookup a city and autocomplete one string
with "city, state, country", but i need make when no result and the user put
something unknow like "city, state, country" the object autocomplete call a
function that fill the hiddens fields splited (,).</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Heres an aproach</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>function findValue(li) {<BR> // if coming from
an AJAX call, let's use the CityId as the value<BR> if( !!li.extra )
{<BR> var ciudad = li.extra[0];<BR> var provincia =
li.extra[1];<BR> var pais =
li.extra[2];<BR> }<BR> else<BR> {<BR> var row =
li.split(",");<BR> var ciudad = row[0];<BR> var provincia
= row[1];<BR> var pais =
row[2];<BR> }<BR> <BR> $("#provincia_auto").val(provincia);<BR> $("#pais_auto").val(pais);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2> $("#ciudad").val($.trim(ciudad));<BR> $("#provincia").val($.trim(provincia));<BR> $("#pais").val($.trim(pais));</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> var sValue =
li.selectValue;<BR>}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I getting problem because dont exist a function
"onblur" implemented in the class.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>thx</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Sry for my english</FONT></DIV><!-- SPAMfighter Signature -->
<hr>Estoy utilizando la versión gratuita de SPAMfighter para usuarios privados.<br />Ha eliminado 2578 correos spam hasta la fecha.<br />Los abonados no tienen este mensaje en sus correos.<br />¡Pruebe <a href="http://www.spamfighter.com/les">SPAMfighter</a> gratis ya!<br /></BODY></HTML>