$(document).ready(function()
{
var response = $.ajax({ type: "GET",
url : "http://www.google.com",
async : false,
success : function(resp) {
alert(resp);
}
});
});
no output….
You are trying to break the “ajax same origin policy“.
That means, you cannot access a foreign domain with an Ajax request.
“Workarounds” are to use JSONP, HTML5 or CORS. All of those must be supported serverside.
The most common thing to solve this issue is, to use your webserver as a proxy.
Let your server make the request and send the results back to your website.