Forum Moderators: open
I am using MSXML2.XMLHTTP.4.0 to retrieve data from an eternal web page (other domain) and displaying the contents in my local web page. This works perfectly when I run it from my local system. When I upload it to my Web Server and access it, then it does not work. The following is the code:
var objSrvHTTP;
objSrvHTTP = new ActiveXObject("Msxml2.XMLHTTP.4.0");
objSrvHTTP.open ("GET",theURL,false);
I am getting the "access denied" error exactly at the third line where the URL is passed. Can anyone help me with this?
Also, please let me know if there are any other methods to retrieve the data without using Msxml2.XMLHTTP.4.0.
Thank you!
aries
var xmlHTTP = new ActiveXObject("Msxml2.XMLHTTP.4.0");
xmlHTTP.open("GET","https:/www.someurl.com", false);
var returnValue = xmlHTTP.responseText;
I am getting access denied error at line 2 at xmlHTTP.open call. Although this when I run locally (by giving file path instead of url) works well.