non-CDN Hosted jQuery caused strange some 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:42 UTC
Read the original article
Hit count: 184
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
then I refreshed the web page, and I could saw the returned value.
© Stack Overflow or respective owner