Note that there are some explanatory texts on larger screens.

plurals
  1. POJQuery Ajax not working in IE10
    text
    copied!<p><strong>Background</strong></p> <p>I want to submit a form, stay on the same page &amp; get the response.</p> <p>Below mentioned code works perfectly in Chrome, Safari &amp; Firefox. However It doesn't work in IE10.</p> <p>How to make it work in IE10?</p> <p><strong>My Analysis correctness="questionable"</strong></p> <p>In IE10, <code>$('#amazonUpload').ajaxSubmit(options)</code> is executed, however No Ajax request is received at Server, hence response is never received at client.</p> <p><strong>HTML</strong> </p> <pre><code>&lt;form action="https://s3.amazonaws.com/adminportal" enctype="multipart/form-data" id="amazonUpload" method="post"&gt; &lt;input name="key" type="hidden" value="001e0000009vkRLAAY/Forms/${filename}" /&gt; &lt;input name="AWSAccessKeyId" type="hidden" value="client aws key" /&gt; &lt;input name="policy" type="hidden" value="really long string" /&gt; &lt;input name="signature" type="hidden" value="sign value=" /&gt; &lt;input name="acl" type="hidden" value="private" /&gt; &lt;input name="Content-Type" type="hidden" value="application/octet-stream"/&gt; &lt;div id="uploadPage:block:j_id31"&gt;&lt;div class="pbSubsection"&gt; &lt;input id="uploadfileOne" name="file" required="True" size="25" type="file" /&gt; &lt;input class="btn" id="myBtnId55" name="myBtnId55" onclick="uploadActComplete();" style="display:none;" type="button" value="Upload" /&gt; &lt;/form&gt; </code></pre> <p><strong>JavaScript</strong></p> <pre><code>function uploadActComplete(){ loading(); var options = { // error: errorResponse, // success: successResponse, complete: function(xhr, status) { alert('status is :- '+status ); if(status =='success') successResponse(xhr, status); else if(status =='error') errorResponse(xhr, status); } }; $('#amazonUpload').ajaxSubmit(options); return false; } function errorResponse(xhr, status) { stoploading(); alert('File could not be uploaded, please try again.'); } function successResponse(xhr, status) { stoploading(); $("input[id$='invisiblesubmit']").click(); } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload