I'm trying to load a remote URL (or rather just test to see if a remote page exists).
This works just fine:
$(function() {     
    $.ajax({
        url:'localtest.html',
        type: 'html',
        success: function(content,code) {
            alert(code);
            $('body').html(content);
        }
    });        
});
But swap in a remote URL and I get nothing:
$(function() {     
    $.ajax({
        url:'http://www.google.com/',
        type: 'html',
        success: function(content,code) {
            alert(code);
            $('body').html(content);
        }
    });        
});
Is there any way to do that?
 
     
     
     
     
     
     
     
    