Close Popup Window For File Download

liunx

Guest
i am streaming an Excel file to the user using a Content-Disposition set to attachment. this is all happening in a popup window which I am using to display a "Loading...Please Wait..." message whilst my report loads.

when the attachment "File Download " prompt appears, any clever ideas how i can close the underlying "Loading...Please Wait..." popup window??

thanks.Is this a web app?

If so, the only thing I can think of would be to find some way to figure out whether the file is loaded or not and then when it is, Response.Write some javascript to close the window. As for figuring out when the file is loaded, I dunno. Tricky.
 
Back
Top