<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Mon, 20 May 2013 02:16:43 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[24ways.org: Introducing UDASSS!]]></title>
      <guid>http://www.phpdeveloper.org/news/4526</guid>
      <link>http://www.phpdeveloper.org/news/4526</link>
      <description><![CDATA[On our sister site, <a href="http://www.ajaxdeveloper.org">AjaxDeveloper.org</a> today, there's <a href="http://ajaxdeveloper.org/news/615">a new post</a> that references an "Unobtrusive Degradable Ajax Style Sheet Switcher" powered on the backend by PHP - <a href="http://24ways.org/advent/introducing-udasss">UDASSS</a>.
<p>
<quote>
<i>
First of all, the idea is very simple. I wanted something just like what Paul Sowden put together in
<a href="http://www.alistapart.com/articles/alternate/">Alternative Style: Working With Alternate Style Sheets</a> from <a href="http://www.alistapart.com/">Alistapart Magazine</a> EXCEPT a few minor (not-so-minor actually) differences which I've listed briefly below:
<ul>
<li>Allow users to switch styles without JavaScript enabled (degradable)
<li>Preventing the <a href="http://www.bluerobot.com/web/css/fouc.asp">F.O.U.C.</a> before the window 'load' when getting preferred styles
<li>Keep the JavaScript entirely off our markup (no onclick's or onload's)
<li>Make it very very easy to implement (ok, Paul did that too)
</ul>
What I did to achieve this was used server-side cookies instead of JavaScript cookies. Hence, PHP. However this isn't a "PHP style switcher" '" which is where Ajax comes in. For the extreme technical folks, no, there is no xml involved here, or even a callback response. I only say Ajax because everyone knows what 'it' means. With that said, it's the Ajax that sets the cookies 'on the fly'. Got it? Awesome!
</i>
</quote>
<p>
The <a href="http://24ways.org/advent/introducing-udasss">rest of the post</a> is a tutorial on how to use it (simply), and a direct link to <a href="http://www.dustindiaz.com/downloads/udasss.zip">download it</a>.]]></description>
      <pubDate>Mon, 19 Dec 2005 07:27:01 -0600</pubDate>
    </item>
  </channel>
</rss>
