Answer the question
In order to leave comments, you need to log in
Why is it that if you write AJAX like this ... then it works in google, but not in FireFox?
If you write an Ajax request like this:
$.ajax({
url: url_Page,
type: "POST",
data: { new_val: newVal, id: id, field: field },
beforeSend: function () {
$("#loader").fadeIn();
},
success: function (res) {
$("#mes-edit")
.text(res)
.delay(500)
.fadeIn(1000, function () {
$("#mes-edit").delay(1000).fadeOut();
});
},
error: function () {
alert("Error!");
},
complete: function () {
$("#loader").delay(500).fadeOut();
},
});
$.ajax({
url: url_Page,
type: "POST",
data: { new_val: newVal, id: id, field: field },
beforeSend: beforeSend(),
success: messageSuccess(res),
error: Error(),
complete: complete()
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question