开发者

Non-CDN hosted jQuery caused some strange behaviour

I was using JQuery in this download link, and included it in the head tag of a HTML web page:

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>

开发者_StackOverflow社区In a php web page, I got these few lines of codes:

 $.ajax({
      url: 'http://mywebsite.com/site1/toavail/',
      type: "post",
      success: function(data) { 
      // some more code here
      }
   });

When I tested the HTML page in IE 6, and 7, I saw the same warning message: "permission denied" When I tested it in Firefox 3, nothing was returned from the server web page.

Later, I changed the JQuery source link to be:

http://code.jquery.com/jquery-1.4.2.js

I refreshed the web page, and I could saw the returned value then.


If you look at http://code.jquery.com/jquery-latest.js it's simply returning jQuery 1.4.2. Maybe there was a glitch earlier? I don't see how it would cause any problems, otherwise.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜