Maintaining scrollbar position on postback?

Discussion in 'JSP' started by majorpayne27, Jul 11, 2007.

  1. majorpayne27

    majorpayne27 New Member

    Joined:
    Jul 11, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    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!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice