$('a').click(function(event){
$('body').html('loading...');
$.post('www.sitename.com/hello',{site:"http//:www.google.com"},function(data) {
alert(data);
});
event.preventDefault();
});
I am using the above script to override the default behavior of the links .The site referred here returns the HTML of the ‘site’ parameter.but the page just stops after printing loading…
looks fine. Do you try to access a foreign domain?
Ajax Cross domain policy would not allow that.