I have a simple form with file upload control. The form will be submitted after clicking the upload button. I am trying to make a jquery-ajax post using jquery.form.js .
My code is as follows:
var options = { beforeSubmit: function (formData, jqForm, options) { $(".loaderImage").show(); return true; }, success: function (responseText, statusText, xhr, $form) { $("#result").html(responseText); }, error: function(xhr) { alert(xhr.responseText); } }; $("#AjaxFileUpload").ajaxSubmit(options); return false;
It works great in Google Chrome , Firefox, and Internet Explorer 10 . The problem with Internet Explorer 9 after debugging does not introduce success() . Any indication of what's going wrong? There are also no errors in the console.
I added the error parameter, but the problem is the same, the breakpoint does not fall into the warning.
I just looked at network traffic. When I click the Download button, there is no POST request (in Internet Explorer 9), but there is a POST request in Internet Explorer 10.
I also cleared the cache settings and reset. But the problem persists.
source share