Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/11/2012, 19:02
patadaninja
 
Fecha de Ingreso: febrero-2011
Mensajes: 28
Antigüedad: 13 años, 4 meses
Puntos: 3
Respuesta: Suggest opciones con evento onclik como lo hago

Hola! gracias por contestar, te cuento, la funcion que llama, para cuando se despliega el suggest y seleccionas la opcion es la siguiente:

b.AutoSuggest.prototype.setHighlightedValue = function ()
{
if (this.iHigh)
{
this.sInp = this.fld.value = this.aSug[ this.iHigh-1 ].value.replace(/ñ/g,'ñ');

// move cursor to end of input (safari)
//
this.fld.focus();
if (this.fld.selectionStart)
this.fld.setSelectionRange(this.sInp.length, this.sInp.length);


this.clearSuggestions();

// pass selected object to callback function, if exists
//
if (typeof(this.oP.callback) == "function")
this.oP.callback( this.aSug[this.iHigh-1] )
{alert ("hhhh");
/*var ajax=nuevoAjax();
ajax.open("GET", "select_receptor.php", true);*/
}
}
};

el alert lo arroja ok, yo lo que quiero es que cuando haga onclick, me dirija a una pagina..