javascript - Download in iframe not working -


we have issue in windows 8 ie 10 downloading.

currently use following (pseudocode):

<form id="downloadformid" target="iframeid" action="https://url/" method="post">   <input type="hidden" name="item1" value="value1"/>   <input type="hidden" name="item2" value="value2"/> </form> <iframe id="iframeid" style="display:none;"></iframe> <script type="text/javascript">   $(document).ready(function() {     var downloadform = document.getelementbyid("downloadformid")     if (downloadform != null) {       downloadform.submit()     }   }) </script> 

the problem this doesn't present download option on windows 8 ie 10.

is there reason this, there fix, or better way of doing this?

try add name attribute <iframe>

<iframe name="iframeid" id="iframeid" style="display:none;"></iframe> 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -