I've seen a few questions asked on this subject, such as:
How to download multiple files in one shot in IE
Download Multiple Files Without Using Zip File
but they don't seem to work for me.
I'm using a very simple solution and it looks similar to answers to other answers I've seen. The problem is that IE will only download the first report. I have verified that it is making the call to the server multiple time and the server seems to be sending the response, but it seems like IE stops after the first file it receives.
When downloading from multiple iFrames, why is IE ignoring subsequent files?
function downloadReports(reportIds) {
for (var i = 0; i < reportIds.length; i++) {
var url = "http://page.aspx?id=" + configId + "&reportId=" + reportIds[i];
setTimeout(function () { $("<iframe src='" + url + "' />").appendTo('body'); }, 500 * i);
}
}