Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
    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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Display image while page loads

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have a JSP which sends a request(through javascript) to an action class,Which generates a reports and displays it on a page
The report generation takes a lot of time ,I want to show a GIF saying its loading while the report generation happens
An onload event on the result body wont work because the control doesnt go to the page till the whole page is loaded

In the same way i also have a PDF being generated by writing to a stream which takes time and just opens a OPEN/SAVE/CANCEL dialog box directly
If possible i also want to show an image in this case also

Can some one suggest me possible solutions

Thank you
(The project is a struts 1.2 project)
 
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once.
    Bookmark Topic Watch Topic
  • New Topic