javascript - Hiding a Progress Spinner after download is complete -


i have jsp, html form, user gives couple of inputs. after submitting jsp calls server-side java code create report. based on inputs report take few seconds or few minutes. after java code completes sends ouput in form of excel file browser in response object. gives user standard prompt open or save file.

during report creation have little animation displays fine after submission, after user opens or saves file, animation remains on screen. want animation hidden after user opens or saves.

my thought using javascript timeout , interval functions because of variability of report creation have no idea set duration for. i've tried find ways key off of download completion or when user clicks on open or save doesn't seem possible. i'm looking other ideas because right i'm stumped.

thanks in advance!!


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -