Ajax Address remain Scroll Position

I am using the jquery.address plugin to dynamically load my #content using Ajax. I also am using some effects for loading the new #content (i.e the old #content flies out, the new comes in from top, or from the side etc.) but I think that’s not the problem..

Problem is, that after the ajax request, the scroll position does not remain and the page jumps back to the top.

Is there any plugin/soultion on that? I read that storing the current position in a cookie and using $ (“html,body”).animate({ scrollTop: x }, t); would help. But isn’t there a better maybe more simpler way to accomplish that?

Thanks beforehand!

Mike

newest questions tagged jquery – Stack Overflow

About Admin