Non-CDN hosted jQuery caused some strange behaviour
- by kwokwai
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.