Hi Jackie In javascript you can get and change HTML elements like a DOM tree. For example you can get an object using its id with obj = document.getElementById (id) and you can get all the objects of a specific element using obj = obj.getElementsByTag ('div'). Then you can use obj.scrollTop and obj.scrollLeft to get and set the scrollbar x and y position.
Regards, Néstor Boscán -----Mensaje original----- De: Shi, Jackie [mailto:[EMAIL PROTECTED] Enviado el: Monday, August 01, 2005 3:34 PM Para: Tag Libraries Users List Asunto: RE: Datagrid scrollbar position on refresh Thanks, Nestor, I am not sure I follow your suggestion. How would I get the DIV object? Jackie -----Original Message----- From: Néstor Boscán [mailto:[EMAIL PROTECTED] Sent: Thursday, July 28, 2005 9:19 PM To: 'Tag Libraries Users List' Subject: RE: Datagrid scrollbar position on refresh Hi Jackie Looks like you will have to get the DIV object generated by the datagrid tag. Then you will need to get the x and y position values of the DIV object so you can pass it to the refreshed page so it will set the x and y position. I hope this helps. Regards, Néstor Boscán -----Mensaje original----- De: Shi, Jackie [mailto:[EMAIL PROTECTED] Enviado el: Thursday, July 28, 2005 7:37 PM Para: taglibs-user@jakarta.apache.org Asunto: Datagrid scrollbar position on refresh Hi, I recently implemented the datagrid taglib on my jsp page. I set a vertical scrollbar on my grid for user to scroll when the table has more than certain rows. I refresh the page every 60 seconds using <meta> tag, for example <meta http-equiv="Refresh" content="60" url="someUrl" /> When I scroll to the bottom of the grid, I'd like the scrollbar to stay at the same position when the page is auto refreshed. But whenever the page is refreshed, the scrollbar goes back to top. Does anyone know if there is a way to "remember" the scrollbar position when page is refreshed? Thanks in advance Jackie Shi --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]