Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JSP (http://www.go4expert.com/forums/jsp/)
-   -   Maintaining scrollbar position on postback? (http://www.go4expert.com/forums/maintaining-scrollbar-position-postback-t5209/)

majorpayne27 11Jul2007 18:49

Maintaining scrollbar position on postback?
 
Hello all,

I'm using Java Struts/JSP to develop a web application. I'm fairly experienced in Java programming, but know very little about Javascript.

The current page I'm designing requires frequent reloading, and the scrollbar position must not change. However, I haven't figured out how to make this happen yet, and was wondering if anyone knew of any good ways of approaching this.

In most situations I'd simply use AJAX to prevent all the reloading, but the customer doesn't think they will be able to maintain AJAX code.

Basically, there is a list of (for simplicity's sake) members on this page. Next to each member is an expand button, which will display all the member's "submembers". The issue is, once this "expand" button is clicked, the page reloads to the top.

Also, this is not included in an IFrame. I'm talking about the main scrollbar.

Thanks for the help!


All times are GMT +5.5. The time now is 08:22.