NETWORK_ERROR: XMLHttpRequest Exception 101

Posted by pawan Mangal on Stack Overflow See other posts from Stack Overflow or by pawan Mangal
Published on 2010-02-10T10:09:45Z Indexed on 2010/04/07 11:03 UTC
Read the original article Hit count: 555

Filed under:

I am getting this Error

NETWORK_ERROR: XMLHttpRequest Exception 101

when trying to get XML content from one site. Here is my code

var xmlhttp; 
if(window.XMLHttpRequest)
        { 
            xmlhttp = new XMLHttpRequest();
        }
         if (xmlhttp==null)
        {
            alert ("Your browser does not support XMLHTTP!");
            return;
        }         

xmlhttp.onReadyStateChange=function() 
        {
                if(xmlhttp.readyState==4)
                {
                var value =xmlhttp.responseXML;
                alert(value);
                }
         } 
        xmlhttp.open("GET",url,false);
        xmlhttp.send();
        //alert(xmlhttp.responseXML);      
     }
xmlhttp.open("GET",url,false);
xmlhttp.send(null);

Does any one have a solution?

© Stack Overflow or respective owner

Related posts about AJAX