IE8 .ajax访问被拒绝 [英] IE8 .ajax Access is Denied

查看:124
本文介绍了IE8 .ajax访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了几个小时前运行良好的aspx文件。在这些文件中,有一个.ajax(),

I created several aspx files that run well a couple hours ago. Of the files, there is an .ajax(),

$.ajax( {
      type:'Get',
      url: myURL,
      dataType: 'json',
      callbackParamName: 'callback',
      crossDomain : true,
      success:function(response) {
        debugger;
        drawResponseGeometries(response);
      },
      error: function(xhr, status, error) {
        debugger;
        console.log(error);
      }
    });



我检查了IE8设置,但不记得我做了什么。然后,所有文件都崩溃并出现错误:Access被拒绝。我想这可能与IE设置有关。如果您对此有所了解,请提供帮助。谢谢。


I checked up the IE8 setting but could not remember what I did. Then, all of the files crashed with the error: Access is Denied. I guess it could be related IE settings. Please help if you have the knowledge on it. Thanks.

推荐答案

.ajax({
type:'get',
url:myURL,
dataType:'json' ,
callbackParamName:'callback',
crossDomain:true,
success:function(response){
debugger;
drawResponseGeometries(response);
} ,
错误:函数(xhr,状态,错误){
调试器;
console.log(错误);
}
});
.ajax( { type:'Get', url: myURL, dataType: 'json', callbackParamName: 'callback', crossDomain : true, success:function(response) { debugger; drawResponseGeometries(response); }, error: function(xhr, status, error) { debugger; console.log(error); } });



我检查了IE8设置,但不记得我做了什么。然后,所有文件都崩溃并出现错误:Access被拒绝。我想这可能与IE设置有关。如果您对此有所了解,请提供帮助。谢谢。


I checked up the IE8 setting but could not remember what I did. Then, all of the files crashed with the error: Access is Denied. I guess it could be related IE settings. Please help if you have the knowledge on it. Thanks.


刚检测到我的默认浏览器已更改为Firefox。将IE重新设置为我的默认浏览器后,问题就消失了。
Just detected that my default browser was changed to Firefox. After re-set IE as my default browser, the problem was gone.


这篇关于IE8 .ajax访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆