Link to home
Start Free TrialLog in
Avatar of cnxmax
cnxmax

asked on

Need Fix for Possible Problem with scrollTop in IE6

I'm creating an interface that needs to save the "scrollTop" position of a DIV. I have it working pretty well, it uses a combination of server-side scripting and javascript to remember where the user was scrolled to when they come back to the page.

Here's basic code I'm using in javascript:

document.getElementById('myDivThatScrolls').scrollTop=333;

My code is working in FireFox2, IE7, and Safari 3beta. The problem is, it doesn't work quite right in IE6.

Does anyone know if there is some kind of scrollTop problem/difference with IE6 that would make the values different? My code actually does scroll it, just not to the right position.

One more note... The scroll seems to want to scroll to a maximum position. So, it works up to a certain scroll position, but if I scroll any deeper it just stays in its "max scroll" position.

Any ideas?
Avatar of ChetOS82
ChetOS82
Flag of United States of America image

ASKER CERTIFIED SOLUTION
Avatar of Jason Minton
Jason Minton
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial