Forum Moderators: open
Does anybody have one ready made?
I'd like to load the document and move the scroll position to where it was last viewed.
Can anyone suggest terms used to describe what i am trying to do, so I can search scripts?
The most relevant search results so far are "scroll position postback" but I haven't found any good scripts because there are so many issues regarding browser compatibility and ASP, PHP.
I was wondering if scroll position (scrollx, scrolly) captured by continually running timer driven sampler or some on condition, stored in a cookie would work?
Any suggestions?
[edited by: tedster at 2:30 am (utc) on April 8, 2008]
[edit reason] no personal urls, please [/edit]
your idea sounds like a good one; latch onto the unload event of the window, and when the page unloads, write the current scrollX into a cookie.
beware that a cookie is sent along with every HTTP request, so if this scrolling script is running on other pages it may exhibit unexpected behaviour