Created
May 14, 2013 11:24
-
-
Save RobinHerbots/5575254 to your computer and use it in GitHub Desktop.
Multiple download file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.downloadUpload = function (rowid) { | |
var rowids = rowid ? [rowid] : res.Control.uploadOverview.jqGrid('getGridParam', 'selarrrow'); | |
$.each(rowids, function (ndx, rwd) { | |
var downloadFrame = $("<iframe></iframe>"); | |
downloadFrame.attr("src", '@Url.Action("DownloadFile", "Upload")?uploadId=' + rwd); | |
downloadFrame.on("onload", function() { | |
$(this).remove(); | |
}); | |
$("body").append(downloadFrame); | |
}); | |
return false; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment