Drop-down menu flicker/buffering content for php pages? (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


womble -> Drop-down menu flicker/buffering content for php pages? (7/29/2006 18:45:52)

I've been trying all day to set up a drop-down menu (CSS and javascript) which has been a most frustrating process - some worked, sort of eventually, but even much tweaking couldn't get the fly-outs in the right place, then there was the one that insisted that one of the js functions wasn't defined (but as far as I could see it was) and I eventually got fed up of trying to get it to work. I eventually found one that's playing nice, all the js behaves, it flies out like it's supposed to, in the right place...but....there's a flicker when the page loads, and the fly-out appears breifly as a nested list.

I seem to remember reading an article about cache control and output buffering as a possible fix for this a while back. Problem is I can't remember where I read it now and if I recall, it was about ASP.NET (I'm using php). Much googling has come up with assorted things about configuring servers that I've no idea about what they mean.

Maybe I'm trying to do something that's not possible here, but in my head I'm thinking there must be a way somehow to say - don't display the page until all the bits of the scripts and stuff have loaded....(I suppose a bit like preloading images with javascript)

Am I on a different planet here, or is this possible at all?




yb2 -> RE: Drop-down menu flicker/buffering content for php pages? (7/30/2006 8:30:46)

this is the ASP equivalent
http://www.w3schools.com/asp/prop_buffer.asp

this might be useful
http://www.codingforums.com/archive/index.php?t-3484.html

and this
http://www.aronson.co.il/asp2php.php

but I don't use php enough to know, and I never use the buffer anyway - sorry! :)




womble -> RE: Drop-down menu flicker/buffering content for php pages? (7/30/2006 9:45:14)

Thanks yb2. It does seem like it's some equivalent of the Response.Buffer = true I need, but I can't get any of those to work (though I got an interesting result with second one), I've bookmarked them anyway - they look as though they'll probably come in useful in the future.

The problem seems to be with the javascript (there's too much of it and it's loading slowly). I've found a more lightweight script that avoids the flicker problem, but it wasn't accessible. Then I started investigating Suckerfish/Son of Suckerfish - also lightweight js, but the second level of the nav's not tab-able for keyboard navigation, but as the second level nav is bookmarks on a page that's on the top level nav, I could just about get away with it. I may just go with the Suckerfish one for now on the grounds that I'm getting nowhere going round and round in circles checking out anything that comes up on google that looks as though it might vaguelly be of use.

*sigh*

I suppose I ought to get something to eat. Got so tied up in this I forgot it's food time! [:D]




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625