Stephens, Larry V wrote: > Seems to be working except once in awhile the program doesn't seem to pick up > a change in screen size until you do a reload. When I look at Google topics > on <body onload> they say to me that there's no guarantee <body onload> will > fire the javascript (and, in my case, set the cookies) before other parts of > the page load and - in my case - some of the CF code starts running
cf code is processed on the SERVER, BEFORE your page is presented to the user on screen, BEFORE your js code executes, BEFORE your cookie is set/changed. your onload event is too late to have its results picked up by cf from the cookie at this pageload - only on the next one. aside from that, i do not think the whole idea of serving a different content based on screen resolution is a sound one... it's like serving different content based on browser type and version... there are other, better, techniques for this. css, fluid layouts, ui enhancements, etc etc. i bet you your code (cfml and html) is anything but easily maintainable with all this trying to accommodate various screen resolutions. and how about the user's text size / zoom settings? i may be viewing your site on a 1024x768 screen/browser viewport size with my text set to display at super-mega-large size - try and cram all your extra content onto my 'increased real estate'! i will probably be seeing less than a user with a 640x480 screen... (i do not really do that, but my dad who is close to blind does use a HUGE zoom and a magnifier) didn;t mean for it to sound like a rant... sorry if it does... Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309102 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

