By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,567 Members | 1,185 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,567 IT Pros & Developers. It's quick & easy.

Monitoring of a vertical scroll within a <div style='overflow: auto height:300px;'>

P: n/a
Hi,

I display some information (actually a table of data) within a <div>
which height is constrained, making display a vertical scrollbar:
<div style='overflow: auto height:300px;'>

I need to refresh the data within this <divwithout changing the
current scroll position set by the user.

... but the scrollbar is always reset to the top of the document....
How to handle this???
Thanks.

Sep 11 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
yellowtek wrote:
I need to refresh the data within this <divwithout changing the
current scroll position set by the user.
.. but the scrollbar is always reset to the top of the document....
How to handle this???
Store the div's scrollTop value to a local variable. Refresh content. Set
the scrollTop to the stored value.

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Sep 11 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.