The working code is :

var XHR=false;
var Ajax = {
        getTransport:false,
        activeRequestCount: 0,
        FixeXHR:function() {
                var xhr1 = function() { try{ return new XMLHttpRequest
(); } catch (e) {}; return false; }
                var xhr2 = function() { try{    return new
ActiveXObject('Msxml2.XMLHTTP'); } catch (e) {}; return false; }
                var xhr3 = function() { try{    return new
ActiveXObject('Microsoft.XMLHTTP'); } catch (e) {}; return false; }
                function FixeXHR() {
                        if (xhr3()) { XHR=xhr3; return;}
                        if (xhr1()) { XHR=xhr1; return;}
                        if (xhr2()) { XHR=xhr2; return;}
                }
                FixeXHR();
                this.getTransport=XHR;
        }
};

Ajax.FixeXHR();
Ajax.FixeXHR=null;
XHR=null;

------------------------

Sorry ...Thanks.
-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.


Reply via email to