I have a simple ajax call that works correctly on EVERY other platform except IE. It work on my mac, Ubuntu, Windows Chrome, Windows Firefox, but NOT IE
var params = "action=tsll_field_request&tsll_action=login&email=foo";
$.ajax( {
type: "POST",
url: ajaxurl,
data: params,
dataType: "json",
error:function(xhr, status, errorThrown) {
alert(errorThrown+'\n'+status+'\n'+xhr.statusText);
},
success: ajaxLoginCallback
});
the error function is never called, the ajaxLoginCallback status is always success BUT data (the parameter passed to ajaxLoginCallback) is always -1 on IE. the data returned is a json item formatted with php's json_encode().
I am at a complete loss as to why THIS browser is not parsing the JSON and why I don't get an error.
Can anyone give me a clue?