This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Grokking Bitcoin and have Kalle Rosenbaum on-line!
See this thread for details.
Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization 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
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Automatic Refresh for a specific value  RSS feed

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On my jsp page I display some values. I would like these values to reflect any new values every 60 seconds. Using javascript (window.onload) I am able to refresh the entire jsp page every 60 seconds. However, I do not want to refresh the entire jsp page only certain values displayed on the jsp page.

Thank you for any thoughts and suggestions.
Lisa
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are going to have to refresh the entire page with your current design.

You could alo use an iframe that contains only the items you want refreshed.

Eric
 
Lisa Zapson
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric,

Thanks for your reply. I am using an iframe but I do not like the flicker of the refresh. You mentioned with my design I would have to refresh the entire page. Do you have any suggestions for a different design that I could refresh just a value?

Thanks, Lisa
 
Marshal
Posts: 67257
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have a hidden iframe on the page, you can refresh only the ifrmae (which obtains the updated data), avoiding the main page 'flicker'. The iframe code would use Javascript to cause the values in the main page to be updated.
 
Crusading Chameleon likes the size of this ad:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!