Forum: Ruby on Rails Problem wiht built in JS libary

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3572030efe923a81eea7e6d3649792c2?d=identicon&s=25 Steven Harrison (harro)
on 2006-04-21 21:10
Hi, I am trying to add a page effect using the built in javascripts. The
effect im trying to create is when a user clicks a link the current page
content slides up, then the new content slides down. This all works
great in firefox, but in IE between the slide up and slide down, you see
a quick flash of the content, and it really spoils the whole effect.

Here is the code im using.
This is one on the functions for the homepage link.

[code]
function home() {

            new Effect.BlindUp(page,{queue:{scope:'slide',
position:'front', limit: 1}});
            new Effect.BlindDown('home',{queue:{scope:'slide',
position:'end', limit: 2}});
            page = "home";

    }
[/code]

Any help, or suggestions on how to get rid of the flash in IE would be
great, thanks.
Harro
3572030efe923a81eea7e6d3649792c2?d=identicon&s=25 Steven Harrison (harro)
on 2006-04-21 21:38
Sorry I realised this was not the best place to post this. I found the
solution to this in another thread. Just incase anyone else wants to
know or was interested, adding a doctype to the page, fixes the
flickering issue in IE.

Thanks
This topic is locked and can not be replied to.