954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Retaining scroll position on a div that changes size on HTTP request

When content is loaded into a div on my web site, the div, while waiting for the new content to load, resizes to 0px in height, which causes the scrollbar on the browser to shift upward, and then when the new content loads, the scrollbar is too far up for the user to see the new content immediately upon load. How do I retain the scrollbar's position while new content is being loaded into a div with AJAX?

Here is an example of what I am talking about:

http://www.penisaur.com (cycle through the next and previous on the comments on the first picture)

diracleo
Newbie Poster
1 post since Feb 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: