Answer the question
In order to leave comments, you need to log in
How to make ajax async true work in FireFox?
After clicking on the submit button, ajax POST is sent first, and then the #OnClickOrder form itself is executed.
Here is the code:
jQuery("#OnClickOrder").submit(function(e) {
jQuery.ajax({
type: "POST",
// async: false,
cache: false,
dataType: 'text',
timeout: 1500,
url: url,
success: function(data)
{
}
});
});
async: false
Answer the question
In order to leave comments, you need to log in
jQuery("#OnClickOrder").submit(function(e) {
jQuery.ajax({
type: "POST",
// async: false,
cache: false,
dataType: 'text',
timeout: 1500,
url: url,
success: function(data)
{
}
});
return false; //!!!!
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question