$.ajax({           type: 'GET',            url: 'http://localhost/',           success: function(data) {             alert('success');           }, error: function (data) {             alert('failed');           }     });