<?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>Komodo Media &#187; JavaScript</title>
	<atom:link href="http://www.komodomedia.com/tags/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.komodomedia.com</link>
	<description>blog, webdesign, illustration &#38; newsk00l javascript</description>
	<lastBuildDate>Wed, 18 Jan 2012 14:43:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Rogie&#8217;s Lab</title>
		<link>http://www.komodomedia.com/blog/2011/01/rogie-lab/</link>
		<comments>http://www.komodomedia.com/blog/2011/01/rogie-lab/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 16:41:03 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Lab]]></category>

		<guid isPermaLink="false">http://www.komodomedia.com/?p=2879</guid>
		<description><![CDATA[

Yeah, so I like to tinker around with CSS3/HTML5 and JavaScript. I have a lab now for that.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://lab.komodomedia.com"><br />
<img src="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2011/01/lab.png" alt="" title="lab" width="460" height="300" class="aligncenter size-full wp-image-2880" /></a></p>
<p>Yeah, so I like to tinker around with CSS3/HTML5 and JavaScript. I have a <a href="http://lab.komodomedia.com">lab</a> now for that.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2011/01/rogie-lab/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Javascript classes for n00bs</title>
		<link>http://www.komodomedia.com/blog/2008/09/javascript-classes-for-n00bs/</link>
		<comments>http://www.komodomedia.com/blog/2008/09/javascript-classes-for-n00bs/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 02:49:08 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Nerdlab]]></category>
		<category><![CDATA[class]]></category>

		<guid isPermaLink="false">http://www.komodomedia.com/?p=280</guid>
		<description><![CDATA[Ok. Simple and sweet. I wish I would have known about this a few years ago.  I&#8217;m talking about the idea of a JavaScript function that can be used like a class.  Here&#8217;s what I want:

Simple class interface that I can instantiate with new Classname
Public functions/members
Private functions/members
Priveleged functions/members
Static functions/members

Lately I&#8217;ve been using JavaScript [...]]]></description>
			<content:encoded><![CDATA[<p>Ok. Simple and sweet. I wish I would have known about this a few years ago.  I&#8217;m talking about the idea of a JavaScript function that can be used like a class.  Here&#8217;s what I want:</p>
<ul>
<li>Simple class interface that I can instantiate with <code class="inline">new Classname</code></li>
<li>Public functions/members</li>
<li>Private functions/members</li>
<li>Priveleged functions/members</li>
<li>Static functions/members</li>
</ul>
<p>Lately I&#8217;ve been using JavaScript functions as class objects and utilizing private, priveleged and static members and functions to my hearts content.  Let me share.</p>
<p><small><strong>Disclaimer:</strong> I don&#8217;t consider myself a JavaScript guru, nor do I think that this is the best solution evar known to mankind.  If you have a snooty comment to say, please don&#8217;t leave it here. If you have a piece of constructive criticism or have better methods, do tell. I&#8217;d love to hear what you use. If your JavaScript knowledge is more l33t, then by all means, humbly share.</small></p>
<h3>A Basic Class &amp; Instance</h3>
<p><code>function MyClass () {<br />
   //...<br />
}<br />
var oClass = new MyClass();</code></p>
<h3>Public Member Variables &amp; Functions</h3>
<p>Public functions and variables are available to access on an instance of a class.<br />
<code>function MyClass () {<br />
   //..<br />
}<br/><br />
//public member variable<br />
MyClass.prototype.publicVar =  "My Public Variable";<br/><br />
//public member function<br />
MyClass.prototype.publicFunction = function () {<br />
      alert( this.publicVar );<br />
}<br/><br />
//create an instance<br />
var oClass = new MyClass();<br/><br />
//run a member function<br />
oClass.publicFunction();   //Alert: "My Public Variable"<br />
</code></p>
<h3>Private Member Variables &amp; Functions</h3>
<p>Private member functions and variables are hidden to outside code. Only public functions can access them.<br />
<code>function MyClass () {<br/><br />
   //reference to this<br />
   var self = this;<br/><br />
   //private member variable<br />
   var privateVar = "My Private Variable";<br/><br />
   //public member variable<br />
   this.publicVar = "My Public Variable";<br/><br />
   //private member function<br />
   var privateFunction = function () {<br/><br />
      self.publicVar += " Modified By A Private Fucntion";<br/><br />
      alert( self.publicVar );<br/><br />
   }<br />
}<br />
//create an instance<br />
var oClass = new MyClass();<br/><br />
//run a private member function<br />
oClass.privateFunction();   //private function is undefined<br/><br />
//get a private member var<br />
alert( oClass.privateVar );   //private var is undefined<br />
</code></p>
<h3>Static Member Variables &amp; Functions</h3>
<p>A static function or variable is available on the base class (or JavaScript) function, but is not available to the class instance.<br />
<code>function MyClass () {<br />
   //...<br />
}<br/><br />
//declare a static member<br />
MyClass.staticVar = "My static variable";<br/><br />
//declare a static function<br />
MyClass.staticFunction = function ( pInput ) {<br />
   return new MyClass( MyClass.staticVar , pInput );<br />
}<br/><br />
//create an instance<br />
var oClass = new MyClass();<br/><br />
//run a static function (NO access to private or public)<br />
oClass.staticFunction( 9 );  //staticFunction is undefined on an instance<br />
//run a privileged member function on the class<br />
MyClass.privilegedFunction();   //The function runs<br />
</code></p>
<h3>Priveleged Member Variables &amp; Functions</h3>
<p>A privileged member function has access to private variables, but is available publicly.<br />
<code>function MyClass () {<br/><br />
   //private member variable<br />
   var privateVar = "My Private Variable";<br/><br />
   //privileged member function<br />
   this.privilegedFunction = function () {<br />
      alert( privateVar );<br />
   }<br />
}<br />
//create an instance<br />
var oClass = new MyClass();<br/><br />
//run a privileged member function<br />
oClass.privilegedFunction();   //Output: alerts the value of the private var<br/><br />
</code></p>
<p>These classes may come as news to you&#8230;or maybe you&#8217;ve known about them since you were a fetus.  In either circumstance, they&#8217;ve been a big help to me.</p>
<p>Word up.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2008/09/javascript-classes-for-n00bs/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Dailymugshot.com</title>
		<link>http://www.komodomedia.com/blog/2008/02/dailymugshotcom/</link>
		<comments>http://www.komodomedia.com/blog/2008/02/dailymugshotcom/#comments</comments>
		<pubDate>Sat, 23 Feb 2008 07:37:25 +0000</pubDate>
		<dc:creator>Rogie</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[CSS2]]></category>
		<category><![CDATA[Icons]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://km.local/?p=187</guid>
		<description><![CDATA[<img src="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2008/02/dms.jpg" title="Dailymugshot"  alt="" />

I'd like to announce a project that I have been working on over the past couple of months: <a href="http://www.dailymugshot.com">Dailymugshot.com</a>. ]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dailymugshot.com"><img src="http://d2dnrmagaqciul.cloudfront.net/wp-content/uploads/2008/02/dms.jpg" title="Dailymugshot" alt="" /></a></p>
<p>I&#8217;d like to announce a project that I have been working on over the past couple of months: <a href="http://www.dailymugshot.com">Dailymugshot.com</a>. I designed the site and all interface widgets for Keith Gould, the owner and mind behind the site.  Dailymugshot is a site, inspired by <a href="http://www.dailymugshot.com/main/about">YouTube videos, where people took a picture of themselves every day for years</a>.  The result is this phenomenal video where you can see people aging, changing, going through different fads, etc.  It&#8217;s really pretty cool.</p>
<p>The videos seem great, but would take tremendous dedication to keep it up &#8211;  you might think that this seems a pretty daunting task. I personally don&#8217;t have the ambition to take my picture every day, line them up, animate them and create a movie out of them.  The cool thing is that Dailymugshot takes all of the hard work out of it for you, even reminders &#8211; thats right, they have a reminder application for both win and macs, so you don&#8217;t have to remember to take your mugshot.</p>
<p>I think that this very sweet web application is gonna take off.  I think it is creative, fun and becomes what you make of it.  You want to wear a different outfit each day &#8211; cool.  Are you losing weight and want to see how much your face/body thins out over 2 months?  Great.  Do you want to show your friends on MySpace what you look like every day? Use Dailymugshot.</p>
<p>Mad props go out to Keith for building this and having the ambition to do it.  He has worked long, hard and late hours to pull this project off. If you think its cool, I&#8217;m sure he&#8217;d love a shout out to keep him going.</p>
<p>P.S. The site just went live and the cutest boy in the world in the picture above is my son, Jameson.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.komodomedia.com/blog/2008/02/dailymugshotcom/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: komodomedia.com @ 2012-02-10 14:32:19 by W3 Total Cache -->
