Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Preload JSP with image content-type  RSS feed

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
my jsp is generating the image of graph structure read from db.
To have actual state of the objects on the graph i have refresh in my page.
But everytime the refresh arise, entire page is regenerated and it takes a long time causing me the page dissapears for a 1-2 seconds and after then is shown the new image.
Isn't it possible to preload the image page 2 seconds before end of refresh interval and swap it when it is loaded. Thus it can appear only as the short blink, or even none.
Every suggestion is gratly appreciated.
Mir
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds like a problem that you should use JavaScript for, so ask in that forum.
Bill
 
Marshal
Posts: 67164
169
IntelliJ IDE Java jQuery Mac Mac OS X
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just thinkingabout it really quikly you ca not do anything about the time it takes.
What I gather is you are dynamcially making these pics??
 
Mir Ricco
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, everytime you request the page you get a new picture, but when the page is refreshed the blinking is very annoying
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!