<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Advanced CSS Design Resources - last-child.com &#187; JavaScript</title>
	<atom:link href="http://www.last-child.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.last-child.com</link>
	<description>CSS Toys for Professional Web Developers</description>
	<lastBuildDate>Thu, 08 Jul 2010 16:59:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>YUI 3.0 Gallery now includes modernizr functionality</title>
		<link>http://www.last-child.com/yui-3-0-modernizr-function/</link>
		<comments>http://www.last-child.com/yui-3-0-modernizr-function/#comments</comments>
		<pubDate>Tue, 25 May 2010 22:51:14 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[YUI]]></category>
		<category><![CDATA[Yahoo!]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JS]]></category>
		<category><![CDATA[Modernizr]]></category>
		<category><![CDATA[Yahoo! UI Library]]></category>

		<guid isPermaLink="false">http://www.last-child.com/?p=229</guid>
		<description><![CDATA[Are you working on an HTML5 project and using the latest YUI library from Yahoo? If so, you&#8217;ll be happy to know that you can use the modernizr functionality within the YUI3 code. This extension was added to the YUI Gallery by Pradhap Natarajan: Modernizr (gallery-modernizr). This is a wrapper for Modernizr library that is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://developer.yahoo.com/yui"><img src="http://l.yimg.com/a/i/ydn/icons/yui.png" alt="Yahoo! User Interface Library (YUI)" /></a>Are you working on an <a class="zem_slink" href="http://en.wikipedia.org/wiki/HTML5" title="HTML5" rel="wikipedia">HTML5</a> project and using the latest <a class="zem_slink" href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library" rel="homepage">YUI library</a> from <a class="zem_slink" href="http://www.yahoo.com" title="Yahoo!" rel="homepage">Yahoo</a>? If so, you&#8217;ll be happy to know that you can use the <a href="http://www.modernizr.com/docs/">modernizr</a> functionality within the YUI3 code.</p>
<p>This extension was added to the YUI Gallery  by Pradhap Natarajan: <a href="http://yuilibrary.com/gallery/show/modernizr">Modernizr (gallery-modernizr)</a>. </p>
<blockquote cite="http://yuilibrary.com/gallery/show/modernizr">
<p>This is a wrapper for <a class="zem_slink" href="http://www.modernizr.com/" title="Modernizr" rel="homepage">Modernizr</a> library that is used to detect support for many HTML5 &amp; CSS3 features on a browser. More documentation here &#8211; <a href="http://www.modernizr.com/docs/">http://www.modernizr.com/docs/</a> Please note that the module does not add the Modernizr object to the global namespace. Instead it will be local to the YUI instance.</p>
<p><cite><a href="http://yuilibrary.com/gallery/show/modernizr">Modernizr </a> YUI Library</cite>
</p></blockquote>
<p>Modernizr was created to make HTML5 development consistent. It gives hooks for JS and CSS to support the advanced features.</p>
<h3>Related articles by Zemanta</h3>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://www.slideshare.net/drprolix/yui3-3812758">YUI 3</a> (slideshare.net)</li>
<li class="zemanta-article-ul-li"><a href="http://www.last-child.com/html5-resource-html5-doctor/">HTML5 Resource: HTML5 Doctor</a> (last-child.com)</li>
<li class="zemanta-article-ul-li"><a href="http://www.slideshare.net/rmsguhan/yu-open-forall">YUI open for all !</a> (slideshare.net)</li>
<li class="zemanta-article-ul-li"><a href="http://developer.yahoo.net/blog/archives/2010/03/tech_thursday_smileys_seeing_dogs_and_cameras_yui_modules_videos_and_server_side_javascript.html">Tech Thursday &#8211; Smileys, seeing dogs and cameras, YUI modules, videos and server side JavaScript</a> (developer.yahoo.net)</li>
<li class="zemanta-article-ul-li"><a href="http://developer.yahoo.net/blog/archives/2010/05/look_around_you_fun_with_geolocation_and_wikipedia.html">Look around you &#8211; fun with geolocation and Wikipedia</a> (developer.yahoo.net)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/yui-3-0-modernizr-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 &#8211; quick notes from The Chronicles of Web Standard III &#8211; The Voyage of the HTML5</title>
		<link>http://www.last-child.com/html5-quick-notes/</link>
		<comments>http://www.last-child.com/html5-quick-notes/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 16:43:27 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[W3C]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Scalable Vector Graphics]]></category>

		<guid isPermaLink="false">http://www.last-child.com/?p=207</guid>
		<description><![CDATA[I went to the The Chronicles of Web Standard III &#8211; The Voyage of the HTML5 presentation by Silicon Valley Web Builder last night. Here are some quick notes I took before my battery died. Please note: I am far from an expert on HTML5 and welcome any comments and/or corrections to the following notes. [...]]]></description>
			<content:encoded><![CDATA[<p>I went to the <a href="http://voyageofhtml5.eventbrite.com/">The Chronicles of Web Standard III &#8211; The Voyage of the HTML5</a> presentation by <a href="http://www.eventbrite.com/org/21109741?s=1647134">Silicon Valley Web Builder</a> last night. Here are some quick notes I took before my battery died.<br />
<img src="http://www.last-child.com/wp-content/uploads/2010/04/html5-fist.jpg" alt="HTML5" title="HTML5" class="size-full wp-image-209" width="240" height="251"><br />
<strong>Please note:</strong> I am far from an expert on HTML5 and welcome any comments and/or corrections to the following notes.</p>
<p>The speakers were</p>
<ul>
<li>Ben Galbraith, Co-founder at Ajaxian.com</li>
<li>Brad Neuberg, Developer at <a class="zem_slink freebase/en/google" href="http://google.com" title="Google" rel="homepage">Google</a></li>
<li>Chet Haase, <a class="zem_slink freebase/en/adobe_creative_team" href="http://www.adobe.com/" title="Adobe Systems" rel="homepage">Adobe</a> Flex SDK team member</li>
<li>Michael Carter, Founder at Orbited Project &amp; Official Contributor for W3C HTML5</li>
</ul>
<p>First off, HTML5 was defined as not just an <a class="zem_slink freebase/en/html" href="http://en.wikipedia.org/wiki/HTML" title="HTML" rel="wikipedia">HTML4</a>+ spec. It also includes all of the advances since HTML4.0. These include:</p>
<ul>
<li>CSS3</li>
<li>webGL</li>
<li>geolocation</li>
<li>web workers</li>
<li>web storage</li>
<li>web sockets</li>
<li>canvas, <a class="zem_slink freebase/en/scalable_vector_graphics" href="http://en.wikipedia.org/wiki/Scalable_Vector_Graphics" title="Scalable Vector Graphics" rel="wikipedia">SVG</a></li>
</ul>
<h3>Canvas vs. SVG</h3>
<p>You can roughly think of these as Adobe <a class="zem_slink freebase/en/adobe_flash" href="http://www.adobe.com/products/flash/flashpro/" title="Adobe Flash" rel="homepage">Flash</a> replacements.</p>
<p>Both canvas and SVG can be used to build dynamic images, charts, animation, and more. Canvas has more adoption at this point and is faster. However, the canvas is built and then keeps no memory of the objects it contains. SVG is more structured and knows what it contains. These sub objects can be further manipulated. SVG has the potential of being much more powerful than canvas in the long run. <a class="zem_slink freebase/en/microsoft_corporation" href="http://www.microsoft.com" title="Microsoft" rel="homepage">Microsoft</a>&#8216;s IE9 has demonstrated great potential with SVG.</p>
<h3>CSS3 Advancements</h3>
<p>There&#8217;s been an extended argument about where CSS or JS should be used on a web site. Some developers argue CSS shouldn&#8217;t be used for interactivity, such as drop down menus. However, the <a href="http://webkit.org/blog/130/css-transforms/">CSS transformations</a> available in CSS3 are going to throw a major monkey wrench into this argument. They are blurring the boundaries and can do a much better job than javaScript.</p>
<p><a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fwww.amazon.com%2Fs%3Fie%3DUTF8%26search-alias%3Dcomputers%26ref_%3Dbl%5Fsr%5Felectronics%26field-brandtextbin%3DApple&amp;tag=csstoyslastch-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=390957">Apple</a><img src="https://www.assoc-amazon.com/e/ir?t=csstoyslastch-20&amp;l=ur2&amp;o=1" alt="" style="border: medium none ! important; margin: 0px ! important;" border="0" width="1" height="1"> and Safari have pushed the development of transformations as they introduced the animation of pages when you switch an <a class="zem_slink" href="http://www.apple.com/iphone" title="iPhone 3G" rel="homepage">iPhone</a> from portrait to landscape mode. This is just the tip of the iceberg. An example last night showed a CSS only version of itunes&#8217; coverflow animation. Check out the <a href="http://www.w3.org/TR/css3-3d-transforms/">CSS3 3D transformations</a>.</p>
<h3>Web Workers</h3>
<p><a href="http://www.whatwg.org/specs/web-workers/current-work/">Web workers</a> technology should solve an existing problem with javaScript functions that run for extended periods. One example was a JS transformation of an image. It rotated the image and added reflections. However, the image would stop rotating when a user clicked on a button to add/change the functionality. Web Workers allows these functions to operate consistently. </p>
<p>There was another example with a movie of a guy holding a piece of cardboard and rotating it randomly. The user could click on various movies and watch them appear on the cardboard in the movie. </p>
<h3>You can participate</h3>
<p>One thing mentioned often in the meeting was the open structure for developing the specifications. Anyone can participate by joining the mailing lists, irc (irc.freenode  whatwg), and making requests, suggestions, and comments. </p>
<p>They are especially interested in knowing what problems you have that are not solved by the existing specs. What changes would particularly affect you and how would you solve the problem. </p>
<p>For instance, I asked if the phone manufacturers are looking at the HTML5 web forms and using the new input types to intelligently autofill forms. For instance, they know an input is asking for a phone number, should a phone insert your number automatically? What about your other contact information? </p>
<p>Currently, this interaction is not in the spec. This is the kind of comment/suggestion they need to make the final specifications. </p>
<h3>Related articles by Zemanta</h3>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://r.zemanta.com/?u=http%3A//www.infoworld.com/d/applications/opinion-html5-less-its-cracked-be-381%3Fsource%3Drss_infoworld_news&amp;a=15797299&amp;rid=b424896d-f840-467a-8670-7f429e595c57&amp;e=2ebf05b41f71f5fff489c1062c7811d4">Opinion: HTML5 is less than it&#8217;s cracked up to be</a> (infoworld.com)</li>
<li class="zemanta-article-ul-li"><a href="http://asserttrue.blogspot.com/2010/03/microsoft-gets-behind-svg-finally.html">Microsoft gets behind SVG &#8212; finally</a> (asserttrue.blogspot.com)</li>
<li class="zemanta-article-ul-li"><a href="http://blogs.msdn.com/ie/archive/2010/03/18/svg-in-ie9-roadmap.aspx">SVG in IE9 Roadmap</a> (blogs.msdn.com)</li>
<li class="zemanta-article-ul-li"><a href="http://r.zemanta.com/?u=http%3A//www.infoworld.com/t/browsers/google-and-adobe-cozy-flash-chrome-browser-602%3Fsource%3Drss_infoworld_news&amp;a=15704095&amp;rid=b424896d-f840-467a-8670-7f429e595c57&amp;e=1c50eb517f1c4d00b7501cf60d17a739">Google and Adobe cozy up on Flash for Chrome browser</a> (infoworld.com)</li>
<li class="zemanta-article-ul-li"><a href="http://r.zemanta.com/?u=http%3A//www.infoworld.com/d/applications/microsoft-embraces-html5-specification-in-ie9-861%3Fsource%3Drss_infoworld_news&amp;a=14887145&amp;rid=b424896d-f840-467a-8670-7f429e595c57&amp;e=a730029cfc48b4b2b0c171c3c1eae079">Microsoft embraces HTML5 specification in IE9</a> (infoworld.com)</li>
<li class="zemanta-article-ul-li"><a href="http://24ways.org/2009/html5-tool-of-satan-or-yule-of-santa">HTML5: Tool of Satan, or Yule of Santa?</a> (24ways.org)</li>
<li class="zemanta-article-ul-li"><a href="http://news.cnet.com/8301-30685_3-20000432-264.html?part=rss&amp;subj=news&amp;tag=2547-1_3-0-20">Going beyond Flash, Adobe shows off Web tech</a> (news.cnet.com)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/html5-quick-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yahoo! Boss now features keywords and more language support</title>
		<link>http://www.last-child.com/yahoo-boss-features-keywords/</link>
		<comments>http://www.last-child.com/yahoo-boss-features-keywords/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 07:33:32 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Online Resource]]></category>
		<category><![CDATA[Yahoo!]]></category>
		<category><![CDATA[BOSS Releases Key Terms]]></category>
		<category><![CDATA[Bucharest]]></category>
		<category><![CDATA[Romania]]></category>
		<category><![CDATA[Yahoo Search]]></category>
		<category><![CDATA[Yahoo! Search BOSS]]></category>

		<guid isPermaLink="false">http://www.last-child.com/?p=168</guid>
		<description><![CDATA[The Yahoo! Developer Network blog just published a blog post with new Boss features: Yahoo! Search BOSS Releases Key Terms. There are a few key details in this article. Key terms are now available: Each result now includes the keyterms Yahoo&#8217;s search index has assigned to the web page. This is the same information Yahoo! [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://developer.yahoo.com/search/boss"><img alt="Yahoo! Boss search API" src="http://l.yimg.com/a/i/ydn/icons/boss.gif" title="Yahoo! Boss search API" width="91" height="83"></a>The <a href="http://www.ysearchblog.com">Yahoo! Developer Network blog</a> just published a blog post with new Boss features: <a href="http://www.ysearchblog.com/archives/000654.html">Yahoo! Search BOSS Releases Key Terms</a>. There are a few key details in this article.</p>
<ul>
<li><strong>Key terms are now available</strong>: Each result now includes the keyterms Yahoo&#8217;s search index has assigned to the web page. This is the same information Yahoo! uses for search suggestions. I was trying to recreate this by using key term extraction in <a href="http://pipes.yahoo.com/" title="Yahoo! Pipes" rel="homepage" class="zem_slink">Yahoo! Pipes</a>. But this would have involved multiple requests and slowed the page down. Boss&#8217;s inclusion of keyterms opens a whole new world of semantic search options. I&#8217;m using them to display related results on <a href="http://v3ggie.com/tofu.html">V3GGIE</a>.</li>
<li><strong>Extended language/region support</strong>: I was in Romania a couple weeks ago <a href="http://www.tdrake.net/the-big-buch/">discussing Yahoo! Boss with some students in Bucharest</a>. I noticed we didn&#8217;t support the <a href="http://en.wikipedia.org/wiki/Romanian_language" title="Romanian language" rel="wikipedia" class="zem_slink">Romanian language</a> in Boss. I was able to send a few emails asking for support and voila, the <a href="http://developer.yahoo.com/search/boss">Yahoo! Boss</a> has not only added Romanian, but also Turkish and Hebrew! That is some fast turn around and shows their commitment to the users. </li>
<li>Boss made easier: <a href="http://www.wait-till-i.com/">Christian Heilmann</a> has been creating Boss <a href="http://www.wait-till-i.com/2008/11/14/wordpress-plugin-to-add-yahoo-keywords-to-your-posts/">plug-n-play</a> projects. You can get a <a href="http://www.wait-till-i.com/2008/11/10/making-yahoo-boss-easier-with-yboss/">JavaScript Boss badge</a>, <a href="http://www.wait-till-i.com/2008/11/13/yahoo-boss-keyword-extraction-api-wrappers-jsphp/">grab all the keyterms in one arrray</a>, and recently a <a href="http://developer.yahoo.net/blog/archives/2008/11/build_your_own.html">build your own site search in 3 easy steps lesson</a>.</li>
<li><strong>The article also has a link to a new site I&#8217;m developing</strong>: <a href="http://tartin3.com/caramel.html">Tartin3</a>. This is still in the development stages and is a prototype for a much larger site <a href="http://paris.insiderfood.com">InsiderFood.com</a>. <del datetime="2009-01-06T16:58:58+00:00">I&#8217;m hoping to take the covers off Insider Food within the next couple weeks.</del><ins datetime="2009-01-06T16:58:58+00:00"><a href="http://sfbay.insiderfood.com">Insider Food</a> is now Live &#8211; but in Beta mode as I fix bugs and make enhance the search logic</ins></li>
</ul>
<p><strong>Disclaimer</strong>: I work for Yahoo! but I&#8217;m not on the Yahoo! Boss team. I&#8217;m their &#8220;customer&#8221;, as I use Boss for multiple projects outside Yahoo!. I also am a member of the International Yahoo! Developer Network, which allows me to demonstrate and teach some of the Yahoo! API&#8217;s and services.</p>
<h3>Related articles by Zemanta</h3>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://www.ysearchblog.com/archives/000654.html">Yahoo! Search BOSS Releases Key Terms</a></li>
<li class="zemanta-article-ul-li"><a href="http://www.ysearchblog.com/archives/000620.html">Return of the Hack, Yahoo! Open Hack Day</a></li>
<li class="zemanta-article-ul-li"><a href="http://ypnblog.com/blog/2008/09/08/who%25e2%2580%2599s-the-boss-mobile-impressions-and-more/">Who&#8217;s the Boss, Mobile Impressions and More</a></li>
<li class="zemanta-article-ul-li"><a href="http://blog.searchenginewatch.com/blog/081002-094918">Yahoo&#8217;s Search for a Cause to Raise Funds for Breast Cancer Research</a></li>
<li class="zemanta-article-ul-li"><a href="http://profy.com/2008/09/08/yahoo-default-mobile-search-engine-for-att-subscribers/">Yahoo! To Be a Default Mobile Search Engine for AT&amp;T; Subscribers</a></li>
<li class="zemanta-article-ul-li"><a href="http://blog.semantic-web.at/?p=39">Sparkling SPARQL: Scripting the Semantic Web</a></li>
<li class="zemanta-article-ul-li"><a href="http://www.readwriteweb.com/archives/yahoo_releases_badges_for_pipes.php">Yahoo! Releases Badges for Pipes</a></li>
<li class="zemanta-article-ul-li"><a href="http://blog.searchenginewatch.com/blog/080710-093535">hakia Comments on Leveraging Yahoo&#8217;s BOSS</a></li>
<li class="zemanta-article-ul-li"><a href="http://blog.semantic-web.at/2008/07/15/unlimited-queries-with-yahoo-search-boss/">Unlimited Queries with Yahoo! Search BOSS</a></li>
<li class="zemanta-article-ul-li"><a href="http://www.techmeme.com/081208/p69">BOSS Reaches a Milestone (Yahoo! Search Blog)</a></li>
<li class="zemanta-article-ul-li"><a href="http://www.techmeme.com/081126/p57">Search the Web Through a Vertical Lens (Yahoo! Search Blog)</a></li>
<li class="zemanta-article-ul-li"><a href="http://blog.searchenginewatch.com/blog/081119-093412">Yahoo! Search BOSS Enables Key Terms</a></li>
<li class="zemanta-article-ul-li"><a href="http://mashable.com/2008/10/14/boss-mashable-challenge-winners/">KallOut Wins BOSS Mashable Challenge, Socialmention Wins Runner Up</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/yahoo-boss-features-keywords/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a tabbed search form with YUI</title>
		<link>http://www.last-child.com/tabbed-search-form-yui/</link>
		<comments>http://www.last-child.com/tabbed-search-form-yui/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 14:00:59 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Form]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Link]]></category>
		<category><![CDATA[Online Resource]]></category>
		<category><![CDATA[YUI]]></category>
		<category><![CDATA[Yahoo!]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.last-child.com/?p=159</guid>
		<description><![CDATA[Yahoo! makes it easy to create an accessible, handsome tabbed interface. I used their Tab View library to create the tabbed search form for V3GGIE.com. While Tab View can create the tabbed content dynamically, I&#8217;m using it to hide/show hard-coded individual forms. Update: I&#8217;ve removed the tabbed interface from V3GGIE.com. This particular use of the [...]]]></description>
			<content:encoded><![CDATA[<p>Yahoo! makes it easy to create an accessible, handsome tabbed interface. I used their Tab View library to create the tabbed search form for <a href="http://v3ggie.com">V3GGIE.com</a>. While Tab View can create the tabbed content dynamically, I&#8217;m using it to hide/show hard-coded individual forms.</p>
<p><ins datetime="2008-09-28T16:10:07+00:00"><strong>Update:</strong> I&#8217;ve removed the tabbed interface from V3GGIE.com. This particular use of the tabbed module seemed to have created some confusion in users. The approach is still valid, just not the way I originally implemented it.</ins><a href="http://v3ggie.com"><img src="http://www.last-child.com/wp-content/uploads/2008/09/v3ggie-form-300x45.png" alt="" class="alignnone size-medium wp-image-160" height="45" width="300"> See the tabbed search form on V3GGIE.com </a></p>
<h3>Step 1. Create the basic HTML code.</h3>
<p>The tabbed code is a simple pattern: </p>
<ol>
<li>Start with a parent div and give it an id and class=&#8221;yui-navset&#8221;.<br />
	  <code lang="HTML">
<div class="yui-g yui-navset" id="v3search"></div>
</li>
<p></code></p>
<li>Create an unordered list inside this div with class=&#8221;yui-nav&#8221;.</li>
<li>Each list includes a deep link to a corresponding div that is also a child of the parent div. The link text in an em tag.<br />
	  <code lang="HTML">
<li><a href="#vesearch"><em>V3GGIE Search</em></a></li>
<p></code></li>
<li>Create a div with class=&#8221;yui-content&#8221; and create a set of content containing divs. Each div has an id.<br />
	  <code lang="HTML"></p>
<div class="yui-content">
<div id="vesearch">...</div>
<div id="losearch">...</div>
<div id="rcsearch">...</div>
</p></div>
<p></code>
	</li>
<li>Insert the Tabview CSS at the top of the page, the Tab View JS at the bottom of the page, create a small js that instantiates the tab-view module.</li>
<li>For easier styling, use the sam_skin CSS package and add class=&#8221;yui-skin-sam&#8221; to the body.</li>
</ol>
<h3>Step 2. Use PHP to make it more interesting</h3>
<p>Each page calls this chunk of code to insert the tabbed form, it also sets a variable ($selected),  determining which tab is selected on page load. I&#8217;m also inserting the last search query into the text input to make it easier on the user. This is easily done by grabbing the query from the Request object. </p>
<p>The finished code: </p>
<p>	<code lang="PHP"></p>
<div class="yui-g yui-navset" id="v3search">
<!--<?php print $selected ;?>--></p>
<ul class="yui-nav">
<li> &gt;<a href="#vesearch"><em>V3GGIE Search</em></a></li>
<li> &gt;<a href="#losearch"><em>Local</em></a></li>
<li> &gt;<a href="#rcsearch"><em>Recipes</em></a></li>
<li> &gt;<a href="#nesearch"><em>News</em></a></li>
<li> &gt;<a href="#blsearch"><em>Blogs</em></a></li>
</ul>
<div class="yui-content">
<div id="vesearch">
<form name="b" action="/results.php" method="get">
   <label for="vquery">Search for Vegetarian information</p>
<input id="vquery" size="50" name="query" value="&lt;?php print $inputtext; ?&gt;" type="text"></label></p>
<input class="searchsubmit" value="Search" type="submit">
   </form>
</p></div>
<div id="losearch">
<form name="b" action="/local/results.php" method="get">
   <label for="lquery">Where do you want to eat?</p>
<input size="50" id="lquery" name="query" value="&lt;?php print $inputtext; ?&gt;" type="text"></label></p>
<input class="searchsubmit" value="Search" type="submit">
<p>Try "San Francisco Pho", "Paris Fromage",  or "92104 tofu"</p>
</p></form>
</p></div>
<div id="rcsearch">
<form name="b" action="/recipes/results.php" method="get">
   <label for="rquery">What are you hungry for?</p>
<input size="50" name="query" id="rquery" value="&lt;?php print $inputtext; ?&gt;" type="text"></label></p>
<input class="searchsubmit" value="Search" type="submit">
<p>Try "corn chowder" or "vegan pizza"</p>
</p></form>
</p></div>
<div id="nesearch">
<form name="b" action="/news/results.php" method="get">
   <label for="nquery">Get Vegetarian news?</p>
<input size="50" id="nquery" name="query" value="&lt;?php print $inputtext; ?&gt;" type="text"></label></p>
<input class="searchsubmit" value="Search" type="submit">
<p>Try "Vegetarian Chinese Olympics"</p>
</p></form>
</p></div>
<div id="blsearch">
<form name="b" action="/blogs/results.php" method="get">
   <label for="bquery">What are the blogs saying?</p>
<input size="50" id="bquery" name="query" value="&lt;?php print $inputtext; ?&gt;" type="text"></label></p>
<input class="searchsubmit" value="Search" type="submit">
<p> Try a subject: "PETA", "Tempeh", or "Paris -Hilton Vegetarian"</p>
</p></form>
</p></div>
</p></div>
</p></div>
<p></code></p>
<p><a href="http://v3ggie.com/search-form.txt">View the source as a text file</a></p>
<h3>The Final Product</h3>
<p>We now have a tabbed module that allows the user to find recipes, news, blogs, and local restaurants from any page. This is an easy introduction to the <a href="http://developer.yahoo.com/YUI/">YUI</a> libraries. However,  I came across the following surprises:</p>
<ul>
<li>The order of the tabs must match the order of the target divs. I moved my tabs around and discovered they were toggling the wrong forms.</li>
<li>The links that generate the tabs need to have em tags surrounding the text</li>
<li>You&#8217;ll need to download the entire <a href="http://sourceforge.net/project/downloading.php?group_id=165715&amp;filename=yui_2.5.2.zip">YUI package</a> to gain access to the CSS and sprites needed for the library. The examples on the YUI site assume relative links to files, you will either need to duplicate that file structure or upload the skin&#8217;s sprite and change the CSS accordingly. </li>
</ul>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://woork.blogspot.com/2008/07/navigation-bar-with-tabs-using-css.html">Navigation bar with tabs using CSS and sliding doors effect</a></li>
<li class="zemanta-article-ul-li"><a href="http://ajaxian.com/archives/filament-groups-accessible-extensions">Filament Group&#8217;s Accessible Extensions</a></li>
<li class="zemanta-article-ul-li"><a href="http://www.stylegala.com/news/public200809/4777.htm">jQuery Nested Menu</a></li>
<li class="zemanta-article-ul-li"><a href="http://ajaxian.com/archives/the-lessons-of-css-frameworks">The lessons of CSS frameworks</a></li>
<li class="zemanta-article-ul-li"><a href="http://ajaxian.com/archives/rounded-tabs-with-dijit">Rounded tabs with Dijit</a></li>
<li class="zemanta-article-ul-li"><a href="http://jtame05.wordpress.com/2008/06/16/dynamic-css-yet-another-follow-up/">Dynamic CSS (Yet another follow up)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/tabbed-search-form-yui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create your own Search Engine with Yahoo! BOSS</title>
		<link>http://www.last-child.com/create-search-yahoo-boss/</link>
		<comments>http://www.last-child.com/create-search-yahoo-boss/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 20:38:41 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Online Resource]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[YUI]]></category>
		<category><![CDATA[Yahoo!]]></category>
		<category><![CDATA[Application programming interface]]></category>
		<category><![CDATA[Google App Engine]]></category>
		<category><![CDATA[Web search engine]]></category>
		<category><![CDATA[Yahoo Boss]]></category>

		<guid isPermaLink="false">http://www.last-child.com/?p=158</guid>
		<description><![CDATA[Yahoo! recently launched BOSS, which opened their search platform to developers around the world. They didn&#8217;t just create an API to access data. That has been around for a while. Yahoo! has opened the data to developers with no limits on requests, no restrictions of icon use, results display, or even the need to let [...]]]></description>
			<content:encoded><![CDATA[<p>
    Yahoo! recently launched <a href="http://developer.yahoo.com/search/boss/" title="Build Own Search Service">BOSS</a>, which opened their search platform to developers around the world. They didn&#8217;t just create an API to access data. That has been around for a while. Yahoo! has opened the data to developers with no limits on requests, no restrictions of icon use, results display, or even the need to let people know the search engine is Yahoo! based.</p>
<p>   <a href="http://developer.yahoo.com/search/boss"><img src="http://l.yimg.com/a/i/ydn/boss/boss_info4.gif" alt="Yahoo BOSS plus your special sauce equals search innovation" class="plainimage" /></a> </p>
<p>
    This open approach lets anyone build a search engine to their particular skills, mash the data with other sources, re-arrange results, or any other novel idea for the next king of search.  You could also use BOSS to add search capabilities to a pre-existing site, limiting the resuts to just its data.</p>
<p>
    Why is Yahoo! doing this? It&#8217;s a brash approach to push search beyond its current status of pages with ordered sets of links You can let your imagine fly with the only cost being your personal development investment.  I recently took this challenge and decided to build a search engine for vegetarians.</p>
<h3>V3GGIE &#8211; A Vegetarian Search Engine</h3>
<p>My goals were simple:</p>
<ol>
<li>Create a simple site that could be copied easily as a proof of concept for other genres. Document the construction for others to explore.      </li>
<li>Keep it fast with minimal javascript and images      </li>
<li>Use as much Yahoo infrastructure as possible to minimize development time      </li>
<li><strong>Most importantly:</strong> return information relevant to the niche audience: Vegetarians and Vegans.
</li>
</ol>
<p>I&#8217;m not a PHP expert and some of my code is crude. I hope to clean it up and add a number of features to enhance performance and usability. However, the code samples will still be useful to the PHP beginner. More advanced PHP programmers could easily see where they&#8217;d take the concepts and improve on them.</p>
<h3>Set up the basic structure</h3>
<p><a href="http://v3ggie.com">V3ggie</a> has a basic workflow, there&#8217;s an input and result page. Arguably, this should only be one page which displays the original landing and subsequent results. I have separated them as I hope to create extra content that is appropriate to either the landing or results pages. </p>
<p>Further, there are several search engines built into this site. Each has a specific set of resources to fine tune the results. Currently, these are built with subdirectories (/recipes/, /blogs/, /news/, /local/ ). Each subsection includes   index and result pages. This could be changed by utilizing rewrite rules. I&#8217;ve kept it simple for now.</p>
<h3>Setup the Resources</h3>
<p>The <a href="http://developer.yahoo.com/search/boss/">BOSS API</a> allows you to create a query param with a list of domains to search through. This is the easiest way to fine tune your results. For instance, the <a href="http://v3ggie.com/recipes/">V3ggie recipe search page</a> uses a list of vegetarian cooking sites as well as the vegetarian subdirectories of <a href="http://epicurious.com">Epicurious</a> and FoodNetwork. </p>
<p><a href="http://technorati.com">Technorati</a> is the source for blog buzz. V3ggie searches through blogs tagged with &#8220;vegetarian&#8221; and/or &#8220;vegan&#8221;. This helps get the vegetarian viewpoint for any subject.</p>
<p>You have complete freedom to mash the data as much as you like. You could take the search results and mix them with other data, such as the page rank for a result page, the company or product&#8217;s appearance on <a href="http://wikipedia.org">wikipedia</a>, or perhaps data you&#8217;ve stored in your own databases. I can imagine creating an internal product search page that cross-references the results with a list of preferred vendors to encourage employees to purchase supplies from the correct vendor.</p>
<h3>Setup the Platform</h3>
<p>V3ggie is built from <a href="http://developer.yahoo.com/php/">PHP</a>. However, Yahoo! has also provided a python platform, the <a href="http://developer.yahoo.com/search/boss/mashup.html">BOSS Mashup Framework</a>, for building sites very quickly. You can combine this with the <a href="http://code.google.com/appengine/">Google App Engine</a> to create a custom search engine in a short time. <a href="http://4hoursearch.com">Four Hour Search</a>, formally known as <strong>Yuil</strong>, is such an example. It got its name from the length of time it required to research a domain name, setup Google Apps, and build the final search web site. Personally, I spent more than 4 hours trying to get Google Apps set up and I really didn&#8217;t want to learn yet another language (python). </p>
<h3>YUI on the frontend</h3>
<p>The <a href="http://developer.yahoo.com/yui">Yahoo! User Interface library</a> handles the tedious, basic formatting of a page. The <a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets" title="Cascading Style Sheets" rel="wikipedia" class="zem_slink">CSS</a> libraries allow you to create a wide variety of page grids, standardize the fonts, reset browser inconsistencies and establish a common look and feel. </p>
<p>I started the project by using the <a href="http://developer.yahoo.com/yui/grids/builder/">CSS Grid Builder</a>. This easy to use tool sets up the page with the desired columns and includes the base css files. I then added the YUI Base CSS file. This takes the plain page and re-establishes the margins and font-styles for a basic site. These two CSS files will remove 75% of the CSS you would normally have to write for a site. Now you can concentrate on what makes your site special.</p>
<p>I also wanted to offer different seach options from a single interface. Once again, I used the <a href="http://developer.yahoo.com/yui/tabview/">YUI TabView</a> package. This combination of CSS and JS allows you to create a semantic set of links and corresponding series of div wrapped objects. YUI Tab View will turn this into the tabbed interface that even has built in ARIA support for screen readers.</p>
<p>I had some trouble getting the tabs to look correct. The documentation does not make it very clear that  tab links must have an em within the links to get the proper look and feel. I also downloaded the preferred sprite and used fireworks to change the tab color gradients from blue to green. </p>
<p>Yahoo also provides a <a href="http://developer.yahoo.com/ypatterns/">design pattern library</a>. This helped me configure my pagination links. Yahoo has spent a lot of time with user testing to make sure things are easy to use.</p>
<h3>Create your own search engine</h3>
<p>So, what are you wating for? Visit the <a href="htp://developer.yahoo.com">Yahoo Developer Network</a> and start by signing up and getting a application key. I will write separate posts that describe how to build various components of the page. I&#8217;m looking forward to hearing from better PHP programmers on how to improve the code.</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://www.saurabhsahni.com/2008/08/natural-language-image-search-with-boss-and-app-engine/">Natural Language Image Search with Yahoo Boss and Google App Engine</a></li>
<li class="zemanta-article-ul-li"><a href="http://www.techcrunch.com/2008/08/04/yahoo-boss-is-so-open-it-runs-on-googles-app-engine/">Yahoo Boss Is So Open, It Runs on Google&#8217;s App Engine</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/create-search-yahoo-boss/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ARIA support with the YUI library</title>
		<link>http://www.last-child.com/aria-support-with-the-yui-library/</link>
		<comments>http://www.last-child.com/aria-support-with-the-yui-library/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 16:15:51 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[DHTML]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[YUI]]></category>
		<category><![CDATA[Yahoo!]]></category>

		<guid isPermaLink="false">http://www.last-child.com/?p=157</guid>
		<description><![CDATA[AJAX and DHTML have made web sites more interactive and easier to use. At least for visitors who are not using a screen reader. Screen reader users have to struggle with pages that lose focus, change without prompting the user of new data, and much more. However, there are many developers working on solutions to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Ajax_%28programming%29" title="Ajax (programming)" rel="wikipedia" class="zem_slink">AJAX</a> and <a href="http://en.wikipedia.org/wiki/Dynamic_HTML" title="Dynamic HTML" rel="wikipedia" class="zem_slink">DHTML</a> have made  web sites more interactive and easier to use. At least for visitors who are  not using a screen reader. Screen reader users have to struggle with pages that lose focus, change without prompting the user of new data, and much more. However, there are many developers working on solutions to this problem.</p>
<p>Todd Kloots, of the Yahoo User Interface group was one of the first to develop accessible javascript libraries with the YUI menu package. He just published a blog post on the YUI web site about adding ARIA support to the YUI tab package. This information could also help you add this functionality to your existing YUI-based applications. </p>
<p>Here&#8217;s how Todd describes the goal</p>
<blockquote cite="http://yuiblog.com/blog/2008/07/30/tabview-aria/">
<p>
The <a href="http://developer.yahoo.com/yui/tabview/">YUI TabView Control</a> is built on a strong<br />
foundation of semantic markup that provides users with some basic accessibility.  But while TabView looks like a desktop tab control, <a href="http://en.wikipedia.org/wiki/Screen_reader" title="Screen reader" rel="wikipedia" class="zem_slink">screen readers</a> don’t present it as an atomic<br />
widget, leaving users to figure out how the various HTML elements that compose a TabView relate to each other.  However, through the application of the <a href="http://www.w3.org/TR/wai-aria/">WAI-ARIA Roles and States</a>, it is possible to enhance TabView’s accessibility such that users of screen readers perceive it as a desktop tab control.
</p>
<p><cite><a href="http://yuiblog.com/blog/2008/07/30/tabview-aria/">Enhancing TabView Accessibility with WAI-ARIA Roles and States</a>  &#8211; Todd Kloots</cite>
</p></blockquote>
<p>The following video shows how this approach works with Firefox and a screen reader.</p>
<div><object height="322" width="512"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.17"><param name="allowFullScreen" value="true"><param name="bgcolor" value="#000000"><param name="flashVars" value="id=9051193&amp;vid=3199866&amp;lang=en-us&amp;intl=us&amp;thumbUrl=http%3A//us.i1.yimg.com/us.yimg.com/p/i/bcst/videosearch/4371/69134473.jpeg&amp;embed=1"><embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.17" type="application/x-shockwave-flash" allowfullscreen="true" bgcolor="#000000" flashvars="id=9051193&amp;vid=3199866&amp;lang=en-us&amp;intl=us&amp;thumbUrl=http%3A//us.i1.yimg.com/us.yimg.com/p/i/bcst/videosearch/4371/69134473.jpeg&amp;embed=1" height="322" width="512"></object><br /><a href="http://video.yahoo.com/watch/3199866/9051193">YUI TabView with ARIA roles and states/Todd Kloots</a> @ <a href="http://video.yahoo.com">Yahoo! Video</a></div>
<h3>Related articles </h3>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://arstechnica.com/news.ars/post/20080708-ibm-makes-web-accessibility-for-blind-users-a-social-effort.html">IBM makes web accessibility for blind users a social effort</a></li>
<li class="zemanta-article-ul-li"><a href="http://ajaxian.com/archives/accessible-google-charts">Accessible Google Charts</a></li>
<li class="zemanta-article-ul-li"><a href="http://ajaxian.com/archives/axsjax-access-enabling-ajax">AxsJAX: Access-Enabling AJAX</a></li>
<li class="zemanta-article-ul-li"><a href="http://www.nytimes.com/idg/IDG_852573C4006938800025747F007CBD5E.html?partner=rssnyt&amp;emc=rss">I.B.M. Software Enhances Web Accessibility for the Blind</a></li>
<li class="zemanta-article-ul-li"><a href="http://www.ajaxperformance.com/2007/08/29/quick-follow-up-more-yui-compressor-work/">Quick follow-up: more YUI Compressor work</a></li>
<li class="zemanta-article-ul-li"><a href="http://ajaxian.com/archives/high-performance-ajax-applications">High Performance Ajax Applications</a></li>
<li class="zemanta-article-ul-li"><a href="http://ajaxian.com/archives/reminded-of-speaking-your-yahoolang">Reminded of speaking your YAHOO.lang</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/aria-support-with-the-yui-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yahoo! Music &#8211; Easy, semantic, unobtrusive music badges</title>
		<link>http://www.last-child.com/yahoo-music-easy-semantic-unobtrusive-music-badges/</link>
		<comments>http://www.last-child.com/yahoo-music-easy-semantic-unobtrusive-music-badges/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 12:59:09 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[DHTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Online Resource]]></category>
		<category><![CDATA[YUI]]></category>
		<category><![CDATA[Yahoo!]]></category>

		<guid isPermaLink="false">http://www.last-child.com/yahoo-music-easy-semantic-unobtrusive-music-badges/</guid>
		<description><![CDATA[Let&#8217;s say you want to link to a song on the internet. Let&#8217;s also say that you want your users to easily listen to that music. Further, let&#8217;s say you want people to find and enjoy the music without having JavaScript enabled. Is this asking too much? Yahoo&#8217;s Christian Heilmann has been advocating layered, semantic [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you want to link to a song on the internet. Let&#8217;s also say that you want your users to easily listen to that music. Further, let&#8217;s say you want people to find and enjoy the music without having JavaScript enabled.</p>
<h3>Is this asking too much?</h3>
<p>Yahoo&#8217;s <a href="http://www.wait-till-i.com/">Christian Heilmann</a> has been advocating <a href="http://www.wait-till-i.com/2008/02/12/the-great-implementer-swindle-making-badge-use-easy-doesnt-make-it-clever/">layered, semantic badging</a>. </p>
<h3>Yahoo Music badges and the simple href</h3>
<p><a href="http://mediaplayer.yahoo.com/">Yahoo! Media Player</a> has taken this approach to embedding music. You simply put a link to a music file in your site, insert the music JavaScript and away you go. The <a href="http://yahoomediaplayer.wikia.com/wiki/How_To_Link">Music Badge Twiki </a>also shows how you can extend the functionality with basic HTML elements, such as adding a title attribute or image inside the link.</p>
<p>Here&#8217;s an example of the badge in effect. <a href="http://music.tdrake.net/orca.mp3" title="untitled song"><img src="http://farm1.static.flickr.com/41/83669348_cbcae831d8_s.jpg" alt="Orca at the Casbah, 1992" />Orca live at the Casbah, 1992</a> I made a bootleg recording of <a href="http://www.flickr.com/photos/draket/83669348/">Orca</a>, a San Diego supergroup circa 1993. I&#8217;m simply going to create a basic link to the music file  and include an optional image from <a href="http://flickr.com">flickr</a>. The JavaScript will use that information for the player to appear. You&#8217;ll see page loads with a little play icon next to the link. There&#8217;s also a small player on the side of the browser. Click on either and you&#8217;ll see a media player appear in your browser with the music controls.</p>
<p>Here&#8217;s the code:<br />
<code lang="HTML"><br />
<a href="http://music.tdrake.net/orca.mp3" title="untitled song"><img src="http://farm1.static.flickr.com/41/83669348_cbcae831d8_s.jpg" alt="Orca at the Casbah, 1992" />Orca live at the Casbah, 1992</a><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/yahoo-music-easy-semantic-unobtrusive-music-badges/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
<enclosure url="http://music.tdrake.net/orca.mp3" length="48629323" type="audio/mpeg" />
		</item>
		<item>
		<title>Storyboard your DHTML interactions</title>
		<link>http://www.last-child.com/storyboard-your-dhtml-interactions/</link>
		<comments>http://www.last-child.com/storyboard-your-dhtml-interactions/#comments</comments>
		<pubDate>Fri, 28 Sep 2007 22:04:26 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[DHTML]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Online Resource]]></category>
		<category><![CDATA[YUI]]></category>
		<category><![CDATA[Yahoo!]]></category>
		<category><![CDATA[Design pattern]]></category>

		<guid isPermaLink="false">http://www.last-child.com/storyboard-your-dhtml-interactions/</guid>
		<description><![CDATA[Bill Scott gave an interesting lecture today at Yahoo! about AJAX design patterns. He explained how good AJAX designs keep the user&#8217;s attention on the page, remove roadblocks, and increase stickiness to a site. Patterns of successful AJAX behaviors are beginning to appear (Netflix, 37Signals, Yahoo!). There are subtle, and sometimes not so subtle, changes [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/draket/534888874/"><img src="http://farm2.static.flickr.com/1156/534888874_b1c783a5a8_m.jpg" alt="Bill Scott - AJAX God"></a><a href="http://looksgoodworkswell.blogspot.com/">Bill Scott</a> gave an interesting lecture today at Yahoo! about AJAX design patterns. He explained how <a href="http://looksgoodworkswell.blogspot.com/2005/05/interactive-wireframes-documenting.html">good AJAX designs</a> keep the user&#8217;s attention on the page, remove roadblocks, and increase stickiness to a site. </p>
<p>Patterns of successful AJAX behaviors are beginning to appear (<a href="http://netflix.com">Netflix</a>, <a href="http://37signals.com/">37Signals</a>, <a href="http://developer.yahoo.com/ypatterns/">Yahoo!</a>). There are subtle, and sometimes not so subtle, changes that can occur  to let a user know that an action has happened. </p>
<p><a href="http://developer.yahoo.com/yui/dragdrop/dragdrop_storyboard.zip" title="this is a .zip file"><img src="http://us.i1.yimg.com/us.yimg.com/i/ydn/yuiweb/img/dragdrop_storyboard.gif" alt="storyboard for AJAX interactions">Download the drag and drop storyboard design package</a></p>
<p>For instance, he pointed out an interaction on the recently departed Yahoo! Photos site. A user could select multiple photos and then drag them to  special collection folders. The page generated several panels to let the user know that the move would go to the preferred folder (hit yes), wait for the action to finish, and then a final congratulations panel (hit yes). These panels and the two required clicks could have been avoided if the folder changed when the photos were dropped into it. This could be a simple glow and maybe the number of photos in the folder is increased.</p>
<h3>Plan your entire sequence in advance</h3>
<p>Eric Miraglia coined the phrase <a href="http://developer.yahoo.com/yui/dragdrop/#moments">Interesting Moments</a> to describe the multiple changes that occur during an AJAX/DHTML action. </p>
<blockquote><p>In most cases, Drag and Drop requires that you write code to respond to the interesting moments in the interaction: when the drag event starts, when the dragged object enters another object, and so on.<br />
<cite><a href="http://developer.yahoo.com/yui/dragdrop/#moments">Yahoo! UI Library: Drag &amp; Drop &#8211; Interesting Moments </a></cite>
</p></blockquote>
<p>Your user will have a much more pleasant experience if these are considered in the beginning of production. The Yahoo User Interface library includes a <a href="http://developer.yahoo.com/yui/dragdrop/dragdrop_storyboard.zip">storyboard template (.zip)</a> for planning these interactions effectively. This <a href="http://en.wikipedia.org/wiki/Storyboard" title="Storyboard" rel="wikipedia" class="zem_slink">story board</a> concept also works well for forms (especially form validation actions) and Flash components.</p>
<h3>Update</h3>
<p>The YUI blog has posted a video of Bill&#8217;s lecture: <a href="http://yuiblog.com/blog/2007/10/15/video-scott/">YUI Theater — Bill Scott: “Designing the Rich Web Experience: Principals and Patterns for Rich Interaction Design on the Web”</a>. This is a great opportunity to learn from one of the finest developers around.</p>
<h3>Related articles</h3>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a   href="http://ajaxian.com/archives/yui-252-released-big-focus-on-firefox-3-and-opera-95-support">YUI 2.5.2 Released, Big Focus on Firefox 3 and Opera 9.5 Support</a> [via&nbsp;Zemanta]</li>
<li class="zemanta-article-ul-li"><a  href="http://ajaxian.com/archives/pingdom-checks-on-javascript-usage-on-top-sites">Pingdom checks on JavaScript usage on top sites</a> [via&nbsp;Zemanta]</li>
<li class="zemanta-article-ul-li"><a   href="http://wisdump.com/design/a-need-for-information-and-interface-design-pattern-websites/">A Need for Information and Interface Design Pattern Websites</a> [via&nbsp;Zemanta]</li>
<li class="zemanta-article-ul-li"><a   href="http://bokardo.com/archives/social-design-patterns-for-reputation-systems-two/">Social Design Patterns for Reputation Systems: An Interview with Yahoo&#8217;s Bryce Glass (Part II)</a> [via&nbsp;Zemanta]</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/storyboard-your-dhtml-interactions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Take the pain out of CSS-based layouts</title>
		<link>http://www.last-child.com/take-the-pain-out-of-css-based-layouts/</link>
		<comments>http://www.last-child.com/take-the-pain-out-of-css-based-layouts/#comments</comments>
		<pubDate>Fri, 31 Aug 2007 17:45:03 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[DHTML]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[Div]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Online Resource]]></category>
		<category><![CDATA[Standardista]]></category>
		<category><![CDATA[YUI]]></category>
		<category><![CDATA[Yahoo!]]></category>

		<guid isPermaLink="false">http://www.last-child.com/take-the-pain-out-of-css-based-layouts/</guid>
		<description><![CDATA[I hate dealing with CSS-based layouts. Don&#8217;t get me wrong, I&#8217;m not saying I&#8217;d rather use tables. It&#8217;s just that I don&#8217;t relish the idea of fussing with the hacks, negative margins, floats, and more to get the page looking good in all browsers. This problem was solved a few years ago by a series [...]]]></description>
			<content:encoded><![CDATA[<p>I hate dealing with CSS-based layouts. Don&#8217;t get me wrong, I&#8217;m not saying I&#8217;d rather use tables. It&#8217;s just that I don&#8217;t relish the idea of fussing with the hacks, negative margins, floats, and more to get the page looking good in all browsers.</p>
<p>This problem was solved a few years ago by a series of layouts donated to the greater good by wonderful developers. This gave me the ability to ignore layouts and concentrate on semantic, structural markup and using CSS to turn this into a great set of modules on the page. This is the stuff that makes web development fun for me.</p>
<p>Over the years, new layouts came and went and cross-browser layouts developed to a science. It&#8217;s now even easier for you to build a web site layout that is predictable, flexible, and lightweight.  </p>
<h3>The YUI-Grid</h3>
<p>Just because I work at Yahoo!, doesn&#8217;t mean I immediately jumped onto the <a href="http://developer.yahoo.com/yui/grids/">YUI-Grid</a> when it was released. I&#8217;ve built several sites without it since its launch. A developer becomes comfortable with a solution and change hurts. However, I recently began working on a very simple, small gallery site and gave this tool a try.</p>
<p>First, a bit of an explanation on some of the nomenclature. The YUI has laid down the law on some <a href="http://developer.yahoo.com/yui/container/module/index.html">naming conventions</a>, and while it may seem a bit bloated, the resulting hooks allow a site to easily incorporate the YUI JavaScript and CSS. </p>
<p>Each main container div has three children, class=&#8221;hd&#8221; for the header, class=&#8221;bd&#8221; for the body, and class=&#8221;ft&#8221; for the footer. You can delete the hd or ft if they are not needed, but you need to at least have the body element. The main portions of the page use the same naming conventions, although with id instead of class. The header has id=&#8221;hd&#8221;, the body container: id=&#8221;bd&#8221;, and finally the footer has id=&#8221;ft&#8221;.</p>
<h3>YUI flexibility</h3>
<p>Nate Koechley, the man behind the grids, has created a series of rules that let you change the width of your grid, the number of columns, position of columns, and how nested columns divide the avialable space by simply changing a few classes on the parent containers. </p>
<p>It&#8217;s a very powerful set of controls. Here&#8217;s an example of how the classes change the widths of nested divs.</p>
<blockquote cite="http://developer.yahoo.com/yui/grids/"><p>
<img src="http://us.i1.yimg.com/us.yimg.com/i/ydn/yuiweb/img/grids-docs-3.gif" alt="YUI Grid demonstration" /><br />
The standard grid-unit interplay always divides space in two, evenly. To create layouts of more than two units (e.g., three), and to create layouts divided unevenly (e.g., 66% and 33% or 75% and 25%), we employ special grid holders. While &#8220;yui-g&#8221; tells the two children each take up half the space each, &#8220;yui-gc&#8221; tells the first unit to take up two-thirds of the space, and the other unit to take up one-third of the space. Everything else remains the same: units live within grids, and the first of a set must be indicated.<br />
<cite><a href="http://developer.yahoo.com/yui/grids/">Nate Koechley &#8211; Yahoo! UI Library: Grids CSS</a></cite>
</p></blockquote>
<h3>Help?</h3>
<p>Now, if you are like me, your head has begun throbbing after reading the YUI Grid CSS page several times, making notes on how it works, and reading it a few more times before figuring out how to start. The package is complex and yet easy to work with once you dive in. </p>
<p>However, it&#8217;s easy to skip most of the headaches and begin building your site immediately. <a href="http://blog.davglass.com/">Dav Glass</a>, also of the YUI team, created a great <a href="http://developer.yahoo.com/yui/grids/builder/">Grid Builder</a> that makes it sinfully easy to build your complicated layout. Not only does it generate the HTML for your basic page, it also incorporates the full YUI CSS library.</p>
<p>This means you also get the <a href="http://developer.yahoo.com/yui/base/">YUI Base CSS</a>, <a href="http://developer.yahoo.com/yui/reset/">YUI Reset CSS</a>, as well as the excellent <a href="http://developer.yahoo.com/yui/fonts/">YUI Fonts CSS</a>. All of these are combined into one CSS file that has been akamized for faster downloads. This means your final site CSS can focus solely on the things that make it unique. You&#8217;ll be surprised how small your custom files will be when all of these issues have already been dealt with.</p>
<h3>Take it one step further</h3>
<p>I was prompted to write this post after seeing the latest extension of the Grid CSS from the outside. <a href="http://www.wait-till-i.com">Christian Heilmann</a> just published a simple javascript, <a href="http://www.wait-till-i.com/index.php?p=479">Enhancing YUI grids with equal height columns</a>,  that builds on the established nomenclature of the Grid CSS. It&#8217;s a demonstration of the power afforded by a standardized class and id naming convention.</p>
<p>Christian&#8217;s javascript also utilizes the basic YUI Javascript library to take all of your nested divs and make them the same height. So, with the addition of one more js script, you now have complete control of your grid layout and your nested divs are all the same height. </p>
<p>Here&#8217;s how Christian describes the simplicity.</p>
<blockquote cite="http://www.wait-till-i.com/index.php?p=479"><p>
All you need to do is to add YAHOO, YAHOO Dom and YAHOO Event (easiest with the collated <a href="http://developer.yahoo.com/yui/articles/hosting/">yahoo-dom-event package</a>) and the script in the bottom of your document’s body. The script automatically equals all columns in nested grids. If you don’t want all of them to be equal, define only those that need fixing by adding a &#8220;columnfix&#8221;CSS class.<br />
<cite>Christian Heilmann &#8211; <a href="http://www.wait-till-i.com/index.php?p=479">Enhancing YUI grids with equal height columns</a></cite>
</p></blockquote>
<h3>Future flexibility</h3>
<p>This powerful package of YUI CSS and standardized nomenclature for establishing the building blocks and the YUI JavaScript library for building interactions will allow developers to spend more time creating the elements that make their site unique and reduce the cross-browser issues caused by individual mistakes. We&#8217;ll see more extensions from within and outside the YUI developers as the usage becomes more universal. They YUI libraries are not doing the work for me, they&#8217;re just making it a lot more fun and productive.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/take-the-pain-out-of-css-based-layouts/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Looping and Reg Exp helpful links</title>
		<link>http://www.last-child.com/looping-and-reg-exp-helpful-links/</link>
		<comments>http://www.last-child.com/looping-and-reg-exp-helpful-links/#comments</comments>
		<pubDate>Mon, 09 Apr 2007 17:01:06 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Online Resource]]></category>

		<guid isPermaLink="false">http://www.last-child.com/looping-and-reg-exp-helpful-links/</guid>
		<description><![CDATA[I&#8217;ve been dragged into the world of command-line processing and Unix. Arrggh. These links have been helpful for me over the past couple weeks. The first is a new post by Christian Heilmann on looping. The only for loop you will ever need * &#8230; * may contain hyperbole to take the mickey out of [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been dragged into the world of command-line processing and Unix. Arrggh. These links have been helpful for me over the past couple weeks. The first is a new post by Christian Heilmann on looping.</p>
<ul>
<li><a href="http://www.wait-till-i.com/index.php?p=420">The only for loop you will ever need *</a> &#8230; * may contain hyperbole to take the mickey out of other blog posts</li>
<li><a href="http://gnosis.cx/publish/programming/regular_expressions.html">Learning to use regular expressions</a></li>
<li><a href="http://www.math.utah.edu/lab/unix/unix-commands.html">Unix Command Summary</a></li>
<li><a href="http://www.ilovejackdaniels.com/cheat-sheets/regular-expressions-cheat-sheet/">Regular Expressions Cheat Sheet</a> &#8211; I Love Jack Daniels</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/looping-and-reg-exp-helpful-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
