JSP Automatic Refresh Retain Scrollbar Problem
843838Dec 12 2006 — edited Jan 5 2007Basically
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. )