Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/01/2009, 14:22
Avatar de anlhp
anlhp
 
Fecha de Ingreso: agosto-2008
Mensajes: 121
Antigüedad: 16 años, 5 meses
Puntos: 1
Respuesta: Problema con clases

bueno bueno, lo acabo de solucionar jejeje, aunqe sigo preguntandome lo mismo
he aqui el cambio que hice:

Código HTML:
if(typeof XMLHttpRequest == "undefined" && window.ActiveXObject){
//pues pense que estos navegadores lo que me estaban haciendo era 'sobrecargar'
//la funcion XMLHttpRequest que ya predefinida y lo que hice fue asignarle otra funcion 
//anonima a la propiedad, pero igual, no deberia ignorar esto al ser falsa la condicion???Oo
   XMLHttpRequest = function(){
        var arrSignatures = ["MSXML2.XMLHTTP.5.0", "MSXML2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"];
        for(var i=0; i<arrSignatures.length; i++){
            try{
                var oRequest = new ActiveXObject(arrSignatures[i]);
                return oRequest;
            }
            catch(oError){}
        }
        throw new Error("MSXML is not installed on your system.");
    }
  }