Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/04/2013, 22:19
isabelramirezmontoya
 
Fecha de Ingreso: noviembre-2010
Mensajes: 204
Antigüedad: 13 años, 5 meses
Puntos: 1
Ajax que no funciona en IE8

Chicos tengo un pequeño script.js de funciones que me permite actualizar a traves de AJAX sin recargar. Funciona muy bien en todos los browser menos en IE8.

¿Sera que me falta algo para que funciones en IE8?

La parte del script.js que define el objetoAjax() es el siguiente:

Código HTML:
Ver original
  1. function objetoAjax(){
  2.     var xmlhttp=false;
  3.     try {
  4.         xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  5.     } catch (e) {
  6.         try {
  7.            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  8.         } catch (E) {
  9.             xmlhttp = false;
  10.         }
  11.     }
  12.  
  13.     if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
  14.         xmlhttp = new XMLHttpRequest();
  15.     }
  16.     return xmlhttp;
  17. }

Gracias