[thelist] Re: Perkins School for the Blind's new site

Ben Gustafson Ben_Gustafson at lionbridge.com
Fri Sep 13 11:05:01 CDT 2002


--
[ Picked text/plain from multipart/alternative ]
[...]
>> The writeup in the Boston Globe shows the danger of writing about a
>> technology you half understand. It says that, "Using Cascading Style
Sheets
>> technology, the site offers a customization feature that allows users to
>> select a variety of settings[...]. CSS creates a database of the user's
>> preferences and is easily updated."
>>
>>
(http://www.boston.com/dailyglobe2/255/west/Perkins_School_expands_its_Web_s
ite_for_blind+.shtml)
>> Since when is CSS a database?

> I think what they mean is that your personalized settings are stored in a
> database an retrieved when the CSS file is rendered.
>
> -joshua

Mmmnope, it's not quite that complicated. When you go to the "customize this
site" page at http://www.perkins.pvt.k12.ma.us/customize.php, it sets a
cookie when you choose a preference for text size. If you choose Largest,
for example, a cookie is set with the name/value pair of layoutpref=largest.
The next page you go to then uses the "layoutlargest.css" stylesheet to
style the text. Seems that the PHP reads the cookie and then writes the
stylesheet tag into the HTML accordingly.

--Ben



More information about the thelist mailing list