IE8/Chrome, FF funciona bien, pero Internet Explorer 7 me está dando dolores de cabeza.Problema con JSON en Internet Explorer 7
Estoy tratando de obtener un resultado numérico de forma real
$(".checklist label").click(function() {
checkResults();
});
function checkResults() {
var str = $("form").serializeArray();
$.ajax({
type: "POST",
url: "/data.asmx/GetTotal",
cache: false,
contentType: "application/json; charset=utf-8",
data: JSON.stringify({ data: str }),
dataType: "json",
success: handleHtml,
error: ajaxFailed
});
}
function handleHtml(msg) {
$("#result").text(msg.d);
}
function ajaxFailed(xmlRequest) {
}
¿Qué he hecho mal que IE7 no trabajará?
Gracias
BTW no tiene que usar js en stringify, como parámetro de datos en $ .ajax puedes usar todo el objeto. – MarrLiss
gracias esta respuesta me ayudó ... +1 a la respuesta útil y -1 a IE. – Pranav
@MarrLiss ¿Quiere decir en IE7 que no necesitamos hacer Stringify? No puedo ponerlo en funcionamiento (sin ningún archivo agregado) – Lijo