Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I have used ActiveXObject("Msxml2.XMLHTTP") to call a webservice from a page handler,But when ever the Active-X filtering is set as on
in Internet Explorer 9,the code is not working .

The code is as followed:
JavaScript
function GetResponseNew(xhttp1,url, Response)
{
    if(navigator.appName == "Microsoft Internet Explorer")
    {
	    xhttp1 = new ActiveXObject("Msxml2.XMLHTTP");
	}
	else
	{
        xhttp1 = new XMLHttpRequest();
    }
	xhttp1.open("GET", url, false);
	xhttp1.send(null);
	
		if (xhttp1.readyState == 4 && xhttp1.responseText) 
		{
			validateResponse(xhttp1);
			Response(xhttp1.responseXML);
		}	
	
}



Is there any way by which i can over coem the above issue

Regards,
Raghvendra Panda
Posted
Updated 13-Sep-11 1:01am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900