| |||
AYUDENNNNMMMMMEEEEEE Como Cierro El Listbox???????? MI PROBLEMA ES QUE YO TENGO UN TEXTBOX Y UN LISTBOX, EN EL LISTBOX ME TRAIGO UNA SERIE DE NOMBRE DE LA BASE DE DATOS. Y EN EL TEXTBOX YO ESCRIBO UNA LETRA Y AUTOMATICAMENTE ME VA BUSCANDO EL NOMBRE EN LISTBOX. PERO CUANO HAGO CLICK EN EL NOMBRE NO SE ME SIERRA EL LISTBOS. Y YO PONGO LA CONDICION DE : selectInput.Visible = False , PARA QUE CIERRE CUANDO HAGA CLICK EN EL NOMBRE PERO NO SE CIERRA EL LISTBOS. COMO SOLUCIONO ESO? Última edición por jonma29; 01/07/2004 a las 21:42 |
| |||
o.k perdon no grito mas jejej. y ya yo puse el AUTOPOSTBACK a TRUE y no me hace nada, no se como hacer. diapueen, aqui tienes el codigo: <script language="javascript"> function doSelectChange(el,dest){ dest.value = el.options[el.selectedIndex].text } function lookupItem(el,dest){ var curValue = el.value.toLowerCase() var found = false; var index = dest.selectedIndex; var numOptions = dest.options.length; var pos = 0; // Repeat until found or end of list is reached while ((!found) && (pos < numOptions)) { // Do comparisons in lowercase found = (dest.options[pos].text.toLowerCase().indexOf(curValue)==0) if (found) index = pos; pos++; } if (found) // Updated listbox dest.selectedIndex = index; } function goValue(el) { var where; if (el.selectedIndex > -1) { // Make sure there is a selection where = el.options[el.selectedIndex].value; window.open(where) } } </script> espero te sirva... |