jQuery AJAX call working in IE but not FF?
Posted
by Uma Maheshwar
on Stack Overflow
See other posts from Stack Overflow
or by Uma Maheshwar
Published on 2010-06-10T14:07:48Z
Indexed on
2010/06/10
14:12 UTC
Read the original article
Hit count: 120
jQuery
$.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);
}
});
© Stack Overflow or respective owner