i have simple form file upload control. form posted once click on upload
button. i'm trying jquery-ajax
post, using jquery.form.js.
my code 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 fine in google chrome, firefox , internet explorer 10. problem internet explorer 9 is, after debugging, doesn't enter success()
. pointers on what's going wrong? there no errors in console either.
i added error
option well, issue same, breakpoint doesn't hit alert.
i had @ network traffic. there no post request going (in internet explorer 9) when click upload button, there's post request going in internet explorer 10.
i cleared cache , reset browser settings well. issue persists.
badzoke, experiencing same problem yesterday , of today , figured out causing (in case). might helpful situation, well:
internet explorer has restrictions form submission when form not in dom. in case, user interacted button in modal popup (which contained form). when clicked, form removed dom (but still accessible via js var) , replaced loading bar. called myform.ajaxsubmit(options);
in ie<10 attempts submission of form temporary <iframe/>
. not allowed unless form in dom.
if code above simplification of actual scenario , doing similar me, may problem. best of luck.
Comments
Post a Comment