0
我無法在IE9上使用此腳本訪問URL。在Chrome和Firefox上,它工作正常。當我調試在IE9(F12),我得到:SCRIPT5:訪問在IE9上被拒絕
SCRIPT5: ACCESS DENIED.
我的功能:
function NewPage2() {
var xmlHttp;
if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari
xmlHttp = new XMLHttpRequest();
} else { // code for IE6, IE5
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlHttp.open("GET", "https://graph.facebook.com/oauth/access_token?client_id=" +
'<%=ConfigurationManager.AppSettings["clientId"].ToString() %>' +
'&redirect_uri=' + <%=ConfigurationManager.AppSettings["redirectUrl"].ToString() %>' +
'&state=' + document.getElementById('text').value +
'&client_secret=' + '<%=ConfigurationManager.AppSettings["client_secret"].ToString() %>' +
'&code=' + getUrlVars2()["code"], false);
xmlHttp.send(null);
end(xmlHttp.responseText + "&userId=" + getUrlVars2()["state"]);
}
如何獲得'xmlHttp.responseText'? – kaub0st3r 2013-04-01 18:16:10