Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SCRIPT5: Access is denied. Fancybox iFrame. Same domain

I am getting

SCRIPT5: Access is denied.

jquery-1.4.2.min.js, line 127 character 344

in IE 7-9. I've found all kinds of questions on here with this problem, but I'm not crossing domains. All my URL's look fine. The script works fine in Firefox and Chrome. It's using jQuery, so I figure cross domain issues should be handled by the library. I'm at a loss right now and this seems pretty trivial. Any ideas? Please don't slam me with "same question already asked" stuff, because none of the other ones are helping me. Thanks in advance!

like image 683
ansarob Avatar asked Jan 11 '12 21:01

ansarob


2 Answers

And in the newest jQuery- 1.8.0 unfortunately problem is back. I found also problem with positioning fancybox when it has YouTube video. Currently switched back to 1.7.2 as I don't have time to patch fancybox. If anyone else wrote patch I'll be glad for share it.

like image 94
Rob Avatar answered Sep 27 '22 23:09

Rob


Apparently it had to do with jQuery being old. Updated to the newest (1.7) and seems to have fixed the problem.

like image 44
ansarob Avatar answered Sep 27 '22 21:09

ansarob