Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSP Automatic Refresh Retain Scrollbar Problem

843838Dec 12 2006 — edited Jan 5 2007
Basically

I have a table that is inside a Div and the table gets filled out with data retrieved from the server. In order for the data to be up to date the Div has to be refreshed every 10 seconds or so. When viewing the table I will have to scroll down but with the 10 second refresh the scrollbar gets reset to the top of the table.

I have been told to implement ajax and also the use of cookies but my knowledge of Ajax and Javascript is limited .

Can anyone point me to an easy to understand solution? Like where to put the javascripts.

(I have also tried creating the table on a seperate JSP page and then putting this page in an IFrame in the main Page so that the table page refreshes but the main one does not. But I still have to problem with the scrollbar not retaining its position after refresh. )
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 2 2007
Added on Dec 12 2006
20 comments
831 views