asp.net - Show busy gif after user clicks on a Link -


I have a large Excel document that the user clicks on the download link. When the download link is clicked, the browser pops up the standard open save dialog. The problem is that the waiting time can actually be longer, before the dialogue appears 15 seconds or more, the request is in progress, while I want to show a busy GIF how can I achieve it?

I'm pretty sure that I can easily show GIF to GIF, but I'm not sure the new document (Excel Doc) is loading when the Busy Indicator is closed / hidden. Is there a JavaScript event that I can attach to a handler?

Another option is the temporary file method:

Originally:

  1. The user clicks the download link / button
  2. An AJAX request is sent to create an Excel doctor. Show 'busy' indicator.
  3. Excel Dock is created and saved to the temporary file on the server. A unique ID response is sent which identifies the file.
  4. The AJAX response is controlled on the customer-side, hide the 'busy' pointer window.location to the 'download.aspx? Id = ### ' is changed to something, which prompts the user to save the file.

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -