I have a link which when clicked downloads a pdf file.
Is there a way using jQuery to tell when this has occurred. Basically I want the link to change from download to please wait. And when the download is complete it will change to something else.
The main reason is the pdf is generated server side and can take 10 or 20 seconds.
There is no way to check this; there is no event like ondownloadready
.
But there are some work-arounds... Check this question on stackoverflow.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With