NETWORK_ERR: XMLHttpRequest Ausnahme 101

Ich habe ein AJAX-problem in Chrome, geben Sie die folgenden Fehler:

Uncaught Error: NETWORK_ERR: XMLHttpRequest Exception 101

Dies ist mein code:

function IO(filename) {
    if (window.XMLHttpRequest) { //Mozilla, Safari,...
        xmlhttp = new XMLHttpRequest();

    } else if (window.ActiveXObject) { //IE
        try {
            xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
        } catch (e) {
            try {
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) { }
        }
    }

    xmlhttp.open("GET", filename+"?random="+Math.floor(Math.random()*100000001), false);
    xmlhttp.send();

    if(xmlhttp.readyState==4)
        return xmlhttp.responseXML;
}
  • Was ist filename Sie verwenden?
Schreibe einen Kommentar