Previous Message
Next Message

Re: [css-d] Re: Big 'ol Browser Test

Sent by Brandon Oto on 2 September 2002 09:09


on 8/31/02 6:43 AM, Eric A. Meyer at [EMAIL-REMOVED] mumbled something
about:

> At 23:13 -0700 8/30/02, Brandon Oto wrote:
> 
>> Quote from a webdev friend, just now:
>> 
>> "NS7 will show the customization on the
>> customize page itself... but won't hold on to the cookie."
>> 
>> This is on Mac OS X.
> 
> I see the same thing on OS9.  It turns out to be a problem in the
> styleswitcher script, not the CSS itself.  I checked the cookie value
> and NS7 is in fact remembering the cookie value correctly, so it's
> just not applying it to pages.  My hacked version of Snowden's
> switcher script works without any trouble on meyerweb.com, so the
> difference has to be the script.  In my version of the script, I
> commented out the last three lines:
> 
> // var cookie = readCookie("style");
> // var title = cookie ? cookie : getPreferredStyleSheet();
> // setActiveStyleSheet(title);
> 
> That may be the difference.  I remember discussing that part of the
> script with some colleagues and they told me I needed to drop it.
> I've forgotten the reason why, though; something to do with page
> loading, I think.

... enough to drive a man to drink, this...

Okay, so, I commented out the last three lines, per your suggestions.

Charmingly enough, the switcher then proceeded stopped working entirely; it
didn't even switch on the page itself, never mind cookies or other nonesuch.
Confirmation already on numerous browsers.

I would venture out on a limb and say this is probably not the best fix :)

- Brandon
Previous Message
Next Message

Message thread: