Possible Duplicate:
jQuery.ajax fails when url is from different server
I have a code like this on my test page:
$(document).ready(function() {
$.get(
"http://www.google.com",
function(data) { alert(data); }
);
});
The problem is, that I never get the alert and I don’t know why.
Does anybody know what the error could be? Its a simple html page and all other jQuery stuff is working.
This isn’t working for you, because you’re trying to perform crossdomain XmlHttpRequest. You might want to check out this Cross domain mod for jQuery