I tried to toggle fade in and fade effect before and after the file was downloaded.
However, I was unable to check that the file download was completed or not before the fn_fadeOutWaiting() triggered.
I found the source here and here but it did not help for my case.
Here's my JS code is just like this:
fn_fadeInWaiting(); 
document.location = "/Employee/Data?Type=CSV";
fn_fadeOutWaiting();
If the downloaded file size (*.csv) is small, the fn_fadeInWaiting() and fn_fadeOut() triggered at right time. However, if downloaded file size (*.csv) is a bit larger, the fn_fadeOutWaiting() was triggered even if the file was not yet downloaded.
How can I trigger fn_fadeInWaiting() and fn_fadeOutWaiting() correctly for the downloaded file? Thanks.
