Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
86
rated 0 times [  93] [ 7]  / answers: 1 / hits: 16008  / 14 Years ago, wed, june 2, 2010, 12:00:00

Possible Duplicate:

Permission Denied IE iFrame






I have an iframe in b.com which attempts to grab the jQuery library from a.com [my website]. Whenever it does this I get the Access is Denied error in both IE7 and IE8.



I have checked out Fiddler and it doesnt show that the script is getting blocked - but IE does errors with Access is Denied



What is causing this prob and how to get around it ?



Thx


More From » iframe

 Answers
20

Put simply, browser security won't let you communicate between two frames that are on different domains. So you can't grab the jQuery library from another frame. There's no work around or it would be a security hole in the browser.



Your only options are to do one of the following:




  • Not communicate between the frames (eg. load jQuery in all frames that need it)

  • Host the content of each frame on the same domain (you can work with different subdomains)


[#96615] Sunday, May 30, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
brodyfrancisi

Total Points: 1
Total Questions: 102
Total Answers: 89

Location: Marshall Islands
Member since Mon, May 31, 2021
3 Years ago
;