Can you use Javascript to detect a file download window created server side?
Posted
by Zacho
on Stack Overflow
See other posts from Stack Overflow
or by Zacho
Published on 2010-06-16T16:12:26Z
Indexed on
2010/06/16
16:42 UTC
Read the original article
Hit count: 166
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.
© Stack Overflow or respective owner