469,904 Members | 1,920 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,904 developers. It's quick & easy.

Python JavaScript solution to hold vertical scroll bar

Hi. I am putting together a database application on Zope. I have built
a pager for my records (20 per page) but do not want the browser scroll
bars to reset to the top of the browser each time the pager is
advanced to the previous or next page. The normal behavior is fine for
everything but the anchor tags I am using for the pager.

Instead of resetting when a new page is sellected, I want the vertical
scrollbar to maintain its position so when the link is clicked, the
vertical scrollbar position is passed to the next page (so the page
does not jerk to the top but stay in the same position).

I am using css to style anchor tags as buttons and am currently passing
the record start position for the page to the next page.
ie <a class="page_plain"

I am assuming the best way of handling this would be to pass the
current vertical scroll position as a parameter to a JavaScript. Does
anyone have such a solution or other advice for solving this?

Jul 19 '05 #1
0 1233

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Kai Grossjohann | last post: by
4 posts views Thread by D Newsham | last post: by
14 posts views Thread by Karin Jensen | last post: by
7 posts views Thread by bienwell | last post: by
2 posts views Thread by Ray | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.