Advertisement

03.26.2008 at 08:42AM PDT, ID: 23270872 | Points: 500
[x]
Attachment Details

Resetting the scroll position after submit (overflow:scroll)

Asked by leawasson in Hypertext Markup Language (HTML), JavaScript, Cascading Style Sheets (CSS)

Tags:

I am currently using overflow:scroll for a table of data.  The problem is that everytime I make a selection on the row, a submit is fired and the list scrolls back to the top.  Is there a way to get the scroll to return to it's last position?  There are hundreds of rolls so scrolling down every time is very inconvenient.

This is the code I'm using for the scroll:
<div id="myDiv" style="border:2px solid #C0C0C0; margin:4px; position:relative; left:10px; width:1200px; height:450px; overflow:scroll">
        <%@ include file="/myRecords.jspf" %>
</div>

Thanks!Start Free Trial
[+][-]03.26.2008 at 09:13AM PDT, ID: 21213218

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.26.2008 at 09:43AM PDT, ID: 21213582

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628