• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is there an event for a file download?

 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an application that will return data in three different ways, two of which being a file download. The third being an HTML page. When a user clicks the HTML button, a throbber pops up while the page is built(DB queries and report generation take 15 to 20 seconds) and goes away once the HTML is ready. When the user clicks one of the other two options for a download, nothing happens. This is the issue. Is there a way to pop up the throbber for the download portions and listen for the open/save/cancel dialog box? That way the throbber doesn't just stay there after the download.

I am using Spring MVC. Any suggestions?
 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How do you implement this throbber pops up?
 
Nickolas Case
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The throbber pops up using jquery. I can get the throbber to show for any of the views, it's getting the throbber to disappear once the file starts to download that I am having difficulty with. For the HTML piece, the jsp uses a javascript redirect to relaod the page the throbber is on. I could set a timeout, but I can't guarantee the file will be ready for download by then.
 
reply
    Bookmark Topic Watch Topic
  • New Topic