Ajax post being aborted by firefox (not seen in Chrome or IE) Ajax post being aborted by firefox (not seen in Chrome or IE) ajax ajax

Ajax post being aborted by firefox (not seen in Chrome or IE)


Try only

async: false

in ajax option, I had the same problem.


I would start by explicitly setting (and changing) some of the basic ajax options:

 cache: false, timeout: 60000, async: false


What type of content your server returning. JSON or HTML content. Are you using charset=utf-8 in server content. Make sure your server response must be in JSON contentType. Another guess remove datatype: "html" from your code. Try for your luck.

If your server returns json means, try below

$.ajax({            type: 'POST',            url: '/Save',            data: JSON.stringify(dataset),            datatype: "json",            contentType: "application/json",            success: function (data, textStatus, jqXHR) {                //alert("success");            },            error: function (jqXHR, textStatus, errorThrown) {                //alert("error");            }        });

datatype: "json", contentType: "application/json" makes sense