Code snippets that I came across everyday
- Download File with Ajax - FileDownloadAjax
Download file using ajax request. inspired by the question https://stackoverflow.com/questions/55272173/javascript-callback-function-after-download-excel/55273319 So I gave the answer to use the jquery ajax method, But then the file download becomes a problem. I tried and came up with a solution, which is similar to this post https://stackoverflow.com/questions/34436133/pdf-is-blank-when-downloading-using-javascript