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.
精彩评论