File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Automatic Refresh for a specific value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Automatic Refresh for a specific value" Watch "Automatic Refresh for a specific value" New topic
Author

Automatic Refresh for a specific value

Lisa Zapson
Ranch Hand

Joined: Nov 22, 2004
Posts: 50
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
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Nov 22, 2004
Posts: 50
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
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Automatic Refresh for a specific value