开发者

IE is not working for my ajax

开发者 https://www.devze.com 2023-01-28 12:44 出处:网络
I have written a simple ajax call which working fine on every browser in my local machine. But when I uploaded the code on my server My ajax call workin开发者_如何学Pythong fine for most of the browse

I have written a simple ajax call which working fine on every browser in my local machine. But when I uploaded the code on my server My ajax call workin开发者_如何学Pythong fine for most of the browser except IE. It is throwing me the error: access is denied error. What is this? I am newbie in ajax or jquery. Any helpful suggestion will be appreciated.


Sounds like a cross domain issue. Is the url you are calling in your ajax script from another domain?


You need to use window.XDomainRequest for IE 8+ for ajax when calling cross domain ajax.

More info about window.XDomainRequest. http://msdn.microsoft.com/en-us/library/dd573303(VS.85).aspx

Also, you need to enabled the security setting in IE to allow cross domain access.

0

精彩评论

暂无评论...
验证码 换一张
取 消