Why is IE7 and IE8 Giving me “Access Denied” when calling jQuery?

前端 未结 4 2035
执笔经年
执笔经年 2020-12-30 12:45

I am using the Google CDN to call the jQuery 1.4.2 Min File into my application. One FF, Chrome, Safari everything is working great. But for some reason, i get a \"Access

4条回答
  •  借酒劲吻你
    2020-12-30 12:51

    I believe the problem stems from a certain security feature in Internet Explorer where you are not allowed to load code from a remote server unless its considered "trusted" by the browser. From what I read, there are instances where the browser does not complain about this, and then there are other situations where it won't allow it. Not sure what the specific trigger is in your instance, but I would bet that's the root of your problem here.

    If I were you, I would just load the jQuery locally until you have performance issues that prompt you to do otherwise. Name the file jquery-latest.js, and then as new versions of JQ appear, test them locally first, and then replace the file when you're confident it works. OR, keep the version-named file and upgrade each page piecemeal, whichever's easier for your application use.

    Source: http://geekswithblogs.net/TimH/archive/2006/05/17/78673.aspx

提交回复
热议问题