An Iframe opens from "Sharepoint Site" and "Java Web application" opens in taht iframe which contains a tag having reference to link in same domain using IE9, 10, 11.
Sharepoint Homepage is: http://chera.dmkak-test.de/dashboard/mywork/page/default.aspx
When we click on link we get dialog, Stay on page, leave the page always
<a href="http://chera.dmkak-test.de/_tti_bin/Chumal/Filereader.svc/GetDocument/id/414439/filename/gulaa.pdf" class="fileDownload">Download Gulaa</a>
$(document).on("click", "a.fileDownload", function () {
var link = $(this).prop('href');
//console.log("File Download Global" + link);
$.fileDownload(link);
return false; //Critical to stop the click event which will trigger a normal file download
//This is at last of page
});
http://chera.dmkak-test.de/_tti_bin/Chumal/Filereader.svc/GetDocument/id/414439/filename/gulaa.pdf"
Note: This link gets download fine in Firefox and Chrome.
Also, In one of page in IE, link download working fine using same code. That downloadable links are:
Link: http://chera.dmkak-test.de/dashboard/document/downloaddocument/mydownloadabledocument.docx
Link: http://chera.dmkak-test.de/_tti_bin/Chumal/Filereader.svc/GetDocument/id/414439/filename/Mulaa.pdf
Could anyone notice the why this is happening that one link is working but one link is not working.
Iframe in which Java page have following code:
<iframe src="/java/frontpage/activity/925405.do" name="1494844568901" class="cboxIframe" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true" frameborder="0"></iframe>