• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 538
  • Last Modified:

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?
0
cnxmax
Asked:
cnxmax
1 Solution
 
ChetOS82Commented:
0
 
jasonsbytesCommented:
do you need to specify '333px' and not just 333?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now