Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/10/2007, 16:00
Avatar de Gaby_Corr
Gaby_Corr
 
Fecha de Ingreso: junio-2005
Mensajes: 672
Antigüedad: 18 años, 11 meses
Puntos: 0
Ajax y ASP: Error desconocido en tiempo de ejecucion

que tal, no se mucho de ajax, pero estoy intentando hacer una busqueda de un valor que tiene un input, este va y consulta a una tabla en sql, total que en firefox si me funciona y en explorer no, pero en explorer me marca ese error y en la linea que dice:

<script language="javascript" type="text/javascript">
var imagen = ""
//"<img src='ajax-loader.gif'/>"
function getHTTPObject() {
var xmlhttp;
/*@cc_on
@if (@_jscript_version >= 5)
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) { xmlhttp = false; }
}
@else
xmlhttp = false;
@end @*/
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
try {
xmlhttp = new XMLHttpRequest();
} catch (e) { xmlhttp = false; }
}
return xmlhttp;
}

var enProceso = false; // lo usamos para ver si hay un proceso activo
var http = getHTTPObject(); // Creamos el objeto XMLHttpRequest

function Busqueda(dato) {
if (!enProceso && http) {
var valor = escape(document.getElementById(dato).value);

//deberas cambiar esta parte y escribir la pagina correcta
var url = "buscador.asp?Find="+ valor;

http.open("GET", url+ "&raw=" + Math.random(), true);
http.onreadystatechange = handleHttpResponse;
enProceso = true;
http.send(null);
}
}

la linea que tiene la llave es donde me marca el error en explorer y no hace nada de la funcion, en cambio en ffox no me dice q tenga error alguno en la consola de errores =S
q puede ser
__________________
" Recuerda , estas donde debes estar ..."