To download file I am using ajax. I have three status:
"Download file" - before you click on the link. "File is downloading..." - while the file is downloading "Download file" - if the file was generated successful "Error while downloading file" - if there was any error while download the file. I'm using JSP, jquery ajax. How to determinate that there was an error with downloading the file with using ajax or the download was successfull.