javascript - iPad Issue : Unable to download PDF file from a page within iframe -


my application uses iframe display classic asp pages in mvc4 application.

i came across issue downloading pdf file classic asp page on ipad (only). working on other browsers.

when try download pdf file open in iframe instead of downloading file.

i using response header content-disposition type attachment.

markup

<a href="javascript:doildownload(1054820);">statement file - 01/31/2014</a> 

javascript

function doildownload(id) {     ndel = 0;     window.document.location.assign("cincfileil.asp?id=" + id);     parent.window.document.getelementbyid('loadingdialog').style.display = 'none';     settimeout(function () {         window.parent.window.document.getelementbyid('loadingdialog').style.display = 'none';     }, 500); } 


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -