<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The Gahooa Perspective &#187; Uncategorized</title>
	<atom:link href="http://blog.gahooa.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gahooa.com</link>
	<description>Thoughts on Life, Engineering, Technology, Business, and more...</description>
	<lastBuildDate>Fri, 23 Jul 2010 07:09:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.gahooa.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/167b7031b951e9f11655a8ef27c12d71?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>The Gahooa Perspective &#187; Uncategorized</title>
		<link>http://blog.gahooa.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.gahooa.com/osd.xml" title="The Gahooa Perspective" />
	<atom:link rel='hub' href='http://blog.gahooa.com/?pushpress=hub'/>
		<item>
		<title>How to Author a *simple* jQuery plugin</title>
		<link>http://blog.gahooa.com/2009/12/21/how-to-author-a-simple-jquery-plugin/</link>
		<comments>http://blog.gahooa.com/2009/12/21/how-to-author-a-simple-jquery-plugin/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 19:20:01 +0000</pubDate>
		<dc:creator>Jason Garber</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery Plugin]]></category>

		<guid isPermaLink="false">http://blog.gahooa.com/?p=185</guid>
		<description><![CDATA[I use jQuery as the JavaScript library for most projects. It&#8217;s terribly convenient for selecting elements and processing them. However, jQuery is not JavaScript, and there is a lot of things it cannot do. Rather than writing a separate set of functionality outside of jQuery, why not simply extend it on an application-per-application basis? It [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=185&subd=gahooa&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I use jQuery as the JavaScript library for most projects. It&#8217;s terribly convenient for selecting elements and processing them.</p>
<p>However, jQuery is not JavaScript, and there is a lot of things it cannot do. Rather than writing a separate set of functionality outside of jQuery, why not simply extend it on an application-per-application basis? It really is that easy. Perhaps if you get some functionality that is <strong>good enough</strong>, you will want to convert them into a formal plugin and post it to <a href="http://plugins.jquery.com/">http://plugins.jquery.com/</a>&#8230;</p>
<p><strong>Here is the document that explains, in depth, how to author plugins.</strong><br />
<a href="http://docs.jquery.com/Plugins/Authoring">http://docs.jquery.com/Plugins/Authoring</a></p>
<p>Here is an example at a very simple plugin that I whipped together while learning about plugins&#8230; It&#8217;s designed to accept an object of data, and apply it to any of the elements whose name attribute match the key of the data.</p>
<pre class="brush: jscript;">
jQuery.fn.populate = function(Data) {
   this.each(function() {
      if (this.name in Data)
      {
         switch(this.type)
         {
            case 'text': this.value = Data[this.name]; break;
            case 'checkbox': this.checked = Data[this.name]; break
         }
      }
   });
   return this;
};
</pre>
<p>To call it&#8230; Select all input elements of the #Login form, and populate them with the passed data.</p>
<pre class="brush: jscript;">
$('#Login :input').populate({ FirstName: 'sammy', LastName: 'jones' });
</pre>
<p>The <strong>.fn</strong> attribute of the <strong>jQuery</strong> object is where you attach new methods. The <strong>this</strong> member of those functions is set to the current <strong>jQuery</strong> object. The function <strong>must return</strong> the current jQuery object (self) unless explicitly stated otherwise.</p>
<p>Iterating through the elements of the current jQuery object should be done with <strong>this.each(&#8230;)</strong>.</p>
<p>All in all, it&#8217;s very simple, and very powerful to be able to nest custom functionality into the jQuery object within a given application.</p>
<p><strong>Read more at: </strong><a href="http://docs.jquery.com/Plugins/Authoring"></a></p>
<br /> Tagged: JavaScript, jQuery, jQuery Plugin <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gahooa.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gahooa.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gahooa.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gahooa.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gahooa.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gahooa.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gahooa.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gahooa.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gahooa.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gahooa.wordpress.com/185/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=185&subd=gahooa&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.gahooa.com/2009/12/21/how-to-author-a-simple-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gahooa</media:title>
		</media:content>
	</item>
		<item>
		<title>Amazing 1,000,000 frames per second bullet video</title>
		<link>http://blog.gahooa.com/2009/10/12/amazing-1000000-frames-per-second-bullet-video/</link>
		<comments>http://blog.gahooa.com/2009/10/12/amazing-1000000-frames-per-second-bullet-video/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 02:24:47 +0000</pubDate>
		<dc:creator>Jason Garber</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bullet]]></category>
		<category><![CDATA[high speed camera]]></category>

		<guid isPermaLink="false">http://blog.gahooa.com/?p=157</guid>
		<description><![CDATA[Tagged: bullet, high speed camera<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=157&subd=gahooa&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><span style="text-align:center; display: block;"><a href="http://blog.gahooa.com/2009/10/12/amazing-1000000-frames-per-second-bullet-video/"><img src="http://img.youtube.com/vi/QfDoQwIAaXg/2.jpg" alt="" /></a></span></p>
<br /> Tagged: bullet, high speed camera <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gahooa.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gahooa.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gahooa.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gahooa.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gahooa.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gahooa.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gahooa.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gahooa.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gahooa.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gahooa.wordpress.com/157/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.gahooa.com&blog=6218261&post=157&subd=gahooa&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.gahooa.com/2009/10/12/amazing-1000000-frames-per-second-bullet-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gahooa</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/QfDoQwIAaXg/2.jpg" medium="image" />
	</item>
	</channel>
</rss>