Connecting Tech Pros Worldwide Help | Site Map

Page flickers due to forced scrolling

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 6th, 2008, 05:05 PM
Spizzat2
Guest
 
Posts: n/a
Default Page flickers due to forced scrolling

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.

  #2  
Old March 13th, 2008, 03:05 PM
Spizzat2
Guest
 
Posts: n/a
Default 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.
  #3  
Old March 13th, 2008, 05:45 PM
SAM
Guest
 
Posts: n/a
Default 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
  #4  
Old March 13th, 2008, 08:55 PM
Spizzat2
Guest
 
Posts: n/a
Default 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.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.