Non-CDN hosted jQuery caused some strange behaviour
Posted
by kwokwai
on Stack Overflow
See other posts from Stack Overflow
or by kwokwai
Published on 2010-06-05T14:41:55Z
Indexed on
2010/06/05
14:52 UTC
Read the original article
Hit count: 198
jQuery
Hi all,
I was using this 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>
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.
© Stack Overflow or respective owner