<?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>techno.blog(&#34;Dion&#34;) &#187; component</title>
	<atom:link href="http://almaer.com/blog/tag/component/feed" rel="self" type="application/rss+xml" />
	<link>http://almaer.com/blog</link>
	<description>blogging about life, the universe, and everything tech</description>
	<lastBuildDate>Tue, 28 Aug 2012 14:41:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>new Kitt(); Componentizing the Kitt animation for eye-ball browser testing</title>
		<link>http://almaer.com/blog/new-kitt-componentizing-the-kitt-animation-for-eye-ball-browser-testing</link>
		<comments>http://almaer.com/blog/new-kitt-componentizing-the-kitt-animation-for-eye-ball-browser-testing#comments</comments>
		<pubDate>Mon, 28 Jul 2008 15:20:15 +0000</pubDate>
		<dc:creator>dion</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[workerpool]]></category>

		<guid isPermaLink="false">http://almaer.com/blog/new-kitt-componentizing-the-kitt-animation-for-eye-ball-browser-testing</guid>
		<description><![CDATA[
Ever since Aaron Boodman uses the back and forth saw animation to demonstrate how the Gears WorkerPool can keep your UI responsive with the browser, I have used it for testing just that. It turns out the human eye is quite good at the &#8220;oh man look at how badly that jumps&#8221; kind of test.
To [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/KITT"><img src='http://almaer.com/blog/uploads/kittcar.jpg' alt='Kitt of Knight Rider' border='0'/></a></p>
<p>Ever since Aaron Boodman uses the back and forth saw animation to <a href="http://code.google.com/apis/gears/api_workerpool.html">demonstrate how the Gears WorkerPool</a> can keep your UI responsive with the browser, I have used it for testing just that. It turns out the human eye is quite good at the &#8220;oh man look at how badly that jumps&#8221; kind of test.</p>
<p>To make it simple, I have <a href="http://google-ajax-examples.googlecode.com/svn/trunk/kitt/index.html">componentized it</a>, allowing you to drop in a <code>kitt.js</code> and a <code>new Kitt()</code> to be on your way.</p>
<p><a href="http://google-ajax-examples.googlecode.com/svn/trunk/kitt/index.html"><img src='http://almaer.com/blog/uploads/kittelement.png' alt='Kitt Element' border='0'/></a></p>
<p>This is the minimum that you need to kick one off. The new Kitt will look for an element with the default id of &#8216;kitt&#8217;. Since it isn&#8217;t found, one is created and appended to the end of the body.</p>
<p>What about expanding this?</p>
<p>You can tell Kitt to do more, such as giving it an explicit id, colors to use, whether to use the automatic start and stop buttons, etc. Here is an example that turns off the buttons and programatically starts and stops the animation.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> evilkitt <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Kitt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>id<span style="color: #339933;">:</span> <span style="color: #3366CC;">'evilkitt'</span><span style="color: #339933;">,</span> animateBackgroundColor<span style="color: #339933;">:</span> <span style="color: #3366CC;">'red'</span><span style="color: #339933;">,</span> hideButtons<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
evilkitt.<span style="color: #660066;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
setTimeout<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> evilkitt.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">6000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>With this simple little component at work, I can drop it in on the variety of performance testing work that I am doing more and more of these days (hopefully something to share one of these days).</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/pdHRKfGS7Tg&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/pdHRKfGS7Tg&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>Now, I need to make it use <a href="http://www.schillmania.com/projects/soundmanager2/">SoundManager2</a> and the sound of Kitt! ;)</p>
<p>For more information, check out the <a href="http://google-ajax-examples.googlecode.com/svn/trunk/kitt/index.html">Google Code project that hosts the code</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://almaer.com/blog/new-kitt-componentizing-the-kitt-animation-for-eye-ball-browser-testing/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
