$.ajax({
type: "GET",
url: 'http://services.somewhere.com/MethodName',
data: { 'param1':'something', 'param2': 'somethingElse' },
cache: false,
dataType: 'jsonp',
contentType: "application/json; charset=utf-8",
success: function(view) {
alert('success');
},
error: function(xhr, ajaxOptions, thrownError) {
alert(xhr.status);
alert(xhr.responseText);
alert(xhr.statusText);
}
});