"Permission denied" with Internet Explorer and jQuery

Posted by rallex on Stack Overflow See other posts from Stack Overflow or by rallex
Published on 2010-06-02T17:48:38Z Indexed on 2010/06/02 17:54 UTC
Read the original article Hit count: 153

Filed under:
|
|
|
|

I try to do an AJAX call with jQuery and $.post in Internet Explorer, but all I get is an error saying "Permission denied". The problem is kinda weird since it occurs only when I access a page after I was on any other page.

For instance I type the URL in the adress line and let IE load the page. Then I click on a button so the script should start loading JSON data. (The script providing the data lies on the same server and I access it with a relative URL, so using a different domain is not the problem here. Even tried to use a absolute URL with the same host part.)

But when I refresh the page then and try it again it works! Same thing when I come to that page from another page. At first nothing works, but when I click "refresh" everything is fine.

IE gives me the error message "Permission denied" while in every other browser I don't notice this behaviour. Since I have tried many things and still cannot imagine where the problem lies I'd like to ask you what you think the problem might be?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery