I have some jQuery which is just fine:
$.ajax({
url: actionUrl,
type: "POST",
data: data,
dataType: "json",
success: function (data) {
alert(data)
}
});
However, instead of handling the data, the browser tries to open the file. Why?
I'm guessing there is anything wrong with the MIME type of the response, but it works pretty fine other places in the code.