Connecting Tech Pros Worldwide Forums | Help | Site Map

Page flickers due to forced scrolling

Spizzat2
Guest
 
Posts: n/a
#1: Mar 6 '08
I've got some javascript that will show or hide an element on the page
when a user activates it. The problem I'm having is that the content
changes the length of the page, so if the user scrolls to the bottom
of the page with the element showing, and then said user hides the
element, the page has to shrink down back to its original length.
The problem is that while it's shrinking, the page flickers badly. It
looks bad enough to give someone seizures.
I'm not sure if this happens in other browsers because the page
currently only works in Firefox.

I've considered just automatically scrolling to the top of the page
when content is hidden, but I feel that could be just as disorienting
to the user. My other thought was to include the whole result inside a
div with a set height and allow that to scroll, but I'm not sure if
the div would handle changing content length any better than Firefox
does. Does anyone have experience with that?

Basically, I'm just wondering if anyone has any suggestions on how to
reduce/remove the effect.
Thanks.

Spizzat2
Guest
 
Posts: n/a
#2: Mar 13 '08

re: Page flickers due to forced scrolling


Basically, I'm just wondering if anyone has any suggestions on how to
Quote:
Quote:
reduce/remove the effect.
>
only to try to reduce : you cant want to keep same place except if you
work with style 'visibility' instead of 'display'
Thanks for the response, but I want the stuff to change the page's
length. I just don't like how Firefox handles it (again, I'm still not
sure about IE). The odd thing about it is, Firefox handles horizontal
changes just fine. It leaves the page scrolled to the right, and just
shows nothing. Then it waits for the user to scroll left. Maybe I've
simply found a genuine FF bug.
SAM
Guest
 
Posts: n/a
#3: Mar 13 '08

re: Page flickers due to forced scrolling


Spizzat2 a écrit :
Quote:
>
Thanks for the response, but I want the stuff to change the page's
length. I just don't like how Firefox handles it (again, I'm still not
sure about IE). The odd thing about it is, Firefox handles horizontal
changes just fine. It leaves the page scrolled to the right, and just
shows nothing. Then it waits for the user to scroll left. Maybe I've
simply found a genuine FF bug.

that smells errors about CSS

I can't see what you say (horizontal scroll) with my little example
given in my previous answer.

can you give an url for a test ?

--
sm
Spizzat2
Guest
 
Posts: n/a
#4: Mar 13 '08

re: Page flickers due to forced scrolling


that smells errors about CSS
Quote:
>
I can't see what you say (horizontal scroll) with my little example
given in my previous answer.
>
can you give an url for a test ?
>
--
sm
The horizontal scroll example was in reference to my site, not to your
code.
Unfortunately, I can't give the url because it's a restricted access
site.
Closed Thread