Can you use Javascript to detect a file download window created server side?
- by Zacho
I have a jQuery plugin I use to dynamically create and render a form on a default.aspx asp.net page, then submit it.  The page it gets submitted to is a pdf.aspx page.  The page builds a PDF then uses Response.Write to write the file (application/pdf) to the browser.  I use the same method to render XLSX files to the browser as well.  It works really great, but I need a callback or some event to tell the button when to stop spinning.  This prevents the user from continuously clicking the Excel or PDF buttons.  Does anyone know a way to detect the file dialog window when it was not created using javascript?  I am also open to other methods of callback from the server side as well.