1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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