Last post Jul 09, 2015 10:44 AM by DeadTroll
Jul 09, 2015 10:13 AM|Scout7|LINK
Hi, I have a situation where a user needs the ability to select and generate a report from a website that can then be downloaded. My problem is that this report will, most often, take up to 2 minutes to generate! (I know, dont ask, it si what it is).
What I would like to do is to be able to allow the user to select the report and have that report begin generating in the background on a separete thread, allow the user to continue through the site and when the report has finished being generated the user
can be nofitied via AJAX in the header or via a popup that the report is ready for download and then let the user download it.
Anybody any idea or point to any starter?
Jul 09, 2015 10:44 AM|DeadTroll|LINK
If you made a web service call that started the report process and returns some filename to check. Then you can check a file location for that file name. You can use JQuery to check to see if that file exists every 10-20 seconds and if it does notify the
user that the file is ready.