Buenas tardes, estoy haciendo un proyecto y ocupo ajax, y necesito que al darle click a un calendario, me haga una carga de los horarios disponibles. Todo bien hasta que lo pruebo en internet explorer y me sale el siguiente error:
Detalles de error de página web
Agente de usuario: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)
Fecha: Wed, 16 Jul 2014 19:57:08 UTC
Mensaje: Error desconocido en tiempo de ejecución
Línea: 30
Carácter: 4
Código: 0
URI: http://localhost/m/funciones/ajax.js
Y aqui les dejo el codigo de ajax
Código Javascript
:
Ver originalfunction objetoAjax(){
var xmlhttp=false;
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
}
return xmlhttp;
}
function MostrarConsulta(datos){
divResultado = document.getElementById('resultado');
ajax=objetoAjax();
ajax.open("GET", datos);
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
divResultado.innerHTML = ajax.responseText
}
}
ajax.send(null)
}