<?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>The JavaScript Blog &#187; Merrick Christensen</title>
	<atom:link href="http://thejavascriptblog.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://thejavascriptblog.com</link>
	<description>Everything JavaScript</description>
	<lastBuildDate>Thu, 25 Feb 2010 23:05:35 +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>Confirmootion &#8211; MooTools Class For HTML5 &#8211; Rails 3 Inspired Confirmations</title>
		<link>http://thejavascriptblog.com/confirmootion-mootools-class-for-html5-rails-3-inspired-confirmations/</link>
		<comments>http://thejavascriptblog.com/confirmootion-mootools-class-for-html5-rails-3-inspired-confirmations/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 22:56:42 +0000</pubDate>
		<dc:creator>Merrick Christensen</dc:creator>
				<category><![CDATA[Classes]]></category>
		<category><![CDATA[Extensions]]></category>
		<category><![CDATA[MooTools]]></category>

		<guid isPermaLink="false">http://thejavascriptblog.com/?p=79</guid>
		<description><![CDATA[With Rails 3 Comes The End Of Obtrusive JavaScript (please!)
Ruby on Rails 3 makes huge use of custom attributes using the data-* from the HTML 5 spec. This is a miniature class that will grab all anchor tags with &#8220;data-confirm&#8221;, pull that attributes value and stop the default event from firing till after they click [...]]]></description>
			<content:encoded><![CDATA[<h2>With Rails 3 Comes The End Of Obtrusive JavaScript (please!)</h2>
<p><a href="http://rubyonrails.org">Ruby on Rails 3</a> makes huge use of custom attributes using the data-* from the HTML 5 spec. This is a miniature class that will grab all anchor tags with &#8220;data-confirm&#8221;, pull that attributes value and stop the default event from firing till after they click &#8220;Ok&#8221;. If they click &#8220;Cancel&#8221; nothing happens.</p>
<p>John Resig has great post on these custom attributes. You can find it on his blog <a href="http://ejohn.org/blog/html-5-data-attributes/">here</a>.</p>
<h2>Usage</h2>
<h3>JavaScript</h3>
<pre>
var confirmations = new Confirmootion({
     attribute: 'data-confirm'
});
</pre>
<h3>HTML</h3>
<pre>
<a href="http://google.com" data-confirm="You sure you want to hit up Google?">Google</a>
</pre>
<h2>Demo and Download</h2>
<p><a href="http://thejavascriptblog.com/demos/confirmootion/">View Online Here</a><br />
<a href="http://thejavascriptblog.com/demos/confirmootion/downloads/Confirmootion.zip">Download Here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://thejavascriptblog.com/confirmootion-mootools-class-for-html5-rails-3-inspired-confirmations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developer Tools In Safari</title>
		<link>http://thejavascriptblog.com/developer-tools-in-safari/</link>
		<comments>http://thejavascriptblog.com/developer-tools-in-safari/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 00:15:35 +0000</pubDate>
		<dc:creator>Merrick Christensen</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://thejavascriptblog.com/?p=76</guid>
		<description><![CDATA[For a long time I was using Firefox just for Firebug. You know, sort of like when two people stay married for the kid. I was sick and tired of how Firefox rendering looked, hard to explain just not quite as smooth. When Chrome for Mac was released in the beta phases I was stoked&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>For a long time I was using Firefox just for Firebug. You know, sort of like when two people stay married for the kid. I was sick and tired of how Firefox rendering looked, hard to explain just not quite as smooth. When Chrome for Mac was released in the beta phases I was stoked&#8230; Until I saw the UI, now this is debatable but I would much rather have the looks of Safari then Chrome any day. All I really wanted was a good inspector and some nice things from the web developer toolbar.</p>
<h2>Enter Safari Developer Tools</h2>
<p>Why did no one tell me about this soon? Everyone needs to know safari comes with a beautiful inspector (just like chromes &#8211; webkit) and some handy disabling tools. The thing is they aren&#8217;t on by default. To turn them on all you need to do is go to :</p>
<p><strong>Safari -> Preferences -> Advanced -> Show develop menu in menu bar</strong></p>
<div id="attachment_77" class="wp-caption aligncenter" style="width: 310px"><a href="http://thejavascriptblog.com/wp-content/uploads/2010/02/Screen-shot-2010-02-06-at-5.12.41-PM.png"><img src="http://thejavascriptblog.com/wp-content/uploads/2010/02/Screen-shot-2010-02-06-at-5.12.41-PM-300x175.png" alt="" title="Screen shot 2010-02-06 at 5.12.41 PM" width="300" height="175" class="size-medium wp-image-77" /></a><p class="wp-caption-text">You get some nice things like User-Agent changing, Snippet Editors, Console Logging, Inspector, and much more.</p></div>
<p>Goodbye Firefox. It was good while it lasted, but we both know this relationship has been over for a long time.</p>
]]></content:encoded>
			<wfw:commentRss>http://thejavascriptblog.com/developer-tools-in-safari/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WTFramework &#8211; Detect Which Framework A Site Is Using, The Easy Way</title>
		<link>http://thejavascriptblog.com/wtframework-detect-which-framework-a-site-is-using-the-easy-way/</link>
		<comments>http://thejavascriptblog.com/wtframework-detect-which-framework-a-site-is-using-the-easy-way/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 20:20:02 +0000</pubDate>
		<dc:creator>Merrick Christensen</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://thejavascriptblog.com/?p=71</guid>
		<description><![CDATA[WTFramework Summary
WTFramework is a dead simple, and well designed way to detect which framework a site is using as well as version. Being primarily a JavaScript developer I was always looking through the source to find which framework a certain site was using. Or to see if the developer had done something particularly cool with [...]]]></description>
			<content:encoded><![CDATA[<h2>WTFramework Summary</h2>
<p>WTFramework is a dead simple, and well designed way to detect which framework a site is using as well as version. Being primarily a JavaScript developer I was always looking through the source to find which framework a certain site was using. Or to see if the developer had done something particularly cool with my favorite framework <a href="http://mootools.net" target="_blank">MooTools</a>. </p>
<p>It was developed by <a href="http://twitter.com/oskar">Oskar Krawczyk</a> and is implemented as a bookmark for any A grade browser. You simply drag it into your bookmarks bar and its installed. You can now use it on any site you visit. The notifications are &#8220;Growl&#8221; like and are very well designed. </p>
<p>Kudos to Oskar on this one, a dead simple, but time saving tool.</p>
<h2>Installation</h2>
<ol>
<li><a href="http://nouincolor.com/wtframework/2.0/">Visit The Site</a></li>
<li>Drag the big red icon into your bookmarks.</li>
<li>It is now installed.</li>
</ol>
<h2>Fortunately For Us</h2>
<p>Oskar has a public Git Hub repository for this. So if needs be you can change it to suit your needs.</p>
<h2>Gallery</h2>

<a href='http://thejavascriptblog.com/wtframework-detect-which-framework-a-site-is-using-the-easy-way/screen-shot-2009-12-29-at-7-15-25-pm/' title='Screen shot 2009-12-29 at 7.15.25 PM'><img width="150" height="150" src="http://thejavascriptblog.com/wp-content/uploads/2009/12/Screen-shot-2009-12-29-at-7.15.25-PM-150x150.png" class="attachment-thumbnail" alt="" title="Screen shot 2009-12-29 at 7.15.25 PM" /></a>
<a href='http://thejavascriptblog.com/wtframework-detect-which-framework-a-site-is-using-the-easy-way/screen-shot-2009-12-29-at-7-16-01-pm/' title='Screen shot 2009-12-29 at 7.16.01 PM'><img width="150" height="150" src="http://thejavascriptblog.com/wp-content/uploads/2009/12/Screen-shot-2009-12-29-at-7.16.01-PM-150x150.png" class="attachment-thumbnail" alt="" title="Screen shot 2009-12-29 at 7.16.01 PM" /></a>

]]></content:encoded>
			<wfw:commentRss>http://thejavascriptblog.com/wtframework-detect-which-framework-a-site-is-using-the-easy-way/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Making Every Specified Link Send Via Ajax Using MooTools</title>
		<link>http://thejavascriptblog.com/making-every-specified-link-send-via-ajax-using-mootools/</link>
		<comments>http://thejavascriptblog.com/making-every-specified-link-send-via-ajax-using-mootools/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 05:44:24 +0000</pubDate>
		<dc:creator>Merrick Christensen</dc:creator>
				<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://thejavascriptblog.com/?p=67</guid>
		<description><![CDATA[This is a relatively simple concept and is nothing to elaborate but I wanted to share a small piece of code that will take every link with the class of &#8220;ajax&#8221; and access it using AJAX instead of actually going to that page. This using the same Request instance which will keep it optimized and [...]]]></description>
			<content:encoded><![CDATA[<p>This is a relatively simple concept and is nothing to elaborate but I wanted to share a small piece of code that will take every link with the class of &#8220;ajax&#8221; and access it using AJAX instead of actually going to that page. This using the same Request instance which will keep it optimized and manageable. MooTools is going to make this nice and easy on us&#8230;</p>
<h2>Usage</h2>
<h3>JavaScript</h3>
<pre>
var ajax_request = new Request(
{
	onSuccess: function(responseText, responseXML)
	{
		$('message').set('html', responseText);
	}
});

$$('.ajax').each(function(item){
	var url = item.get('href');
	item.addEvent('click', function(event){
		ajax_request.options.url = url;
		ajax_request.send();
		return false;
	});
});
</pre>
<h3>HTML</h3>
<pre>
<a href="ajax.php" class="ajax">Sent Via AJAX</a>
<a href="ajax_alternative.php" class="ajax">Also Sent Via AJAX</a>
<div id="message">I am filled with the results of our AJAX requests.</div>
</pre>
<p>Its incredibly simple so no demo for this. The important concept here is that we are using the same request and pulling the href attribute base on a class selection. So changing something from AJAX to regular is as easy as adding or removing the class &#8220;ajax&#8221;. Pretty cool eh?</p>
]]></content:encoded>
			<wfw:commentRss>http://thejavascriptblog.com/making-every-specified-link-send-via-ajax-using-mootools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MooTools &#8211; It&#8217;s Worth It!</title>
		<link>http://thejavascriptblog.com/mootools-complaints-responses/</link>
		<comments>http://thejavascriptblog.com/mootools-complaints-responses/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 23:25:47 +0000</pubDate>
		<dc:creator>Merrick Christensen</dc:creator>
				<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[MooTools]]></category>

		<guid isPermaLink="false">http://thejavascriptblog.com/?p=63</guid>
		<description><![CDATA[In my attempt to use MooTools on new projects with other developers, share MooTools with other developers, or just releasing a MooTools class; I&#8217;ve come across the same complaints about this incredible framework.
MooTools Complaints
Poor Documentation
While its true MooTools is poorly documented compared to other frameworks it is still worth learning and with people like Aaron [...]]]></description>
			<content:encoded><![CDATA[<p>In my attempt to use MooTools on new projects with other developers, share MooTools with other developers, or just releasing a MooTools class; I&#8217;ve come across the same complaints about this incredible framework.</p>
<h2>MooTools Complaints</h2>
<h3>Poor Documentation</h3>
<p>While its true MooTools is poorly documented compared to other frameworks it is still worth learning and with people like <a href="http://www.clientcide.com/">Aaron Newton</a> or <a href="http://davidwalsh.name">David Walsh</a>. The information to learn it is there its just not necessarily on the MooTools site.</p>
<h3>Poor Demos</h3>
<p>Not much I can say about this but the demo library on MooTools.net was narrow at best. Hopefully they plan to improve this officially in the future. For now though the web community is really pitching in.</p>
<h3>No Official Plugin Library</h3>
<p>MooTools admits this is a lacking feature in the community of the framework and is setting out to release the <a href="http://mootools.net/blog/2009/09/22/mootools-124-released/">Forge</a> with MooTools 2</p>
<h3>The Learning Curve</h3>
<p>It&#8217;s true MooTools is a bit tougher to learn then jQuery but you will be a better programmer for it. It is a very robust framework with a huge potential and plenty of power as it is now.</p>
<h3>Backwards Compatibility</h3>
<p>A bunch of developers I had converted to MooTools was during 1.11. And when MooTools release 1.2. It broke a lot of their code even things they had copied straight from the MooTools demos. MooTools has learned from this mistake and has promised all future releases will be backwards compatible.</p>
<h3>No UI Library</h3>
<p>I&#8217;ve never really been to hurt about this myself as I feel things like jQuery&#8217;s UI library are complete overkill when all you need is progress bar. Either way MooTools is developing a UI library called <a href="http://mootools.net/blog/2009/09/22/mootools-124-released/">MooTools ART</a></p>
<h3>Plugins</h3>
<p>This is a large misconception. I&#8217;ve been hard pressed to find a plugin that someone hasn&#8217;t written or translated to MooTools.</p>
<h2>The Point</h2>
<p>The point of this is not to trash MooTools but to let people know the MooTools team is hard at work fixing a lot of these complaints. I&#8217;ve seen jQuery gaining serious ground since its release for its community and small learning curve. I&#8217;m a huge fan of MooTools and its object oriented approach. I wanted to clear things up on what MooTools is doing about them. Learn MooTools. It&#8217;s an incredible framework.</p>
]]></content:encoded>
			<wfw:commentRss>http://thejavascriptblog.com/mootools-complaints-responses/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>MooTools Grapher Class</title>
		<link>http://thejavascriptblog.com/mootools-grapher-class/</link>
		<comments>http://thejavascriptblog.com/mootools-grapher-class/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 20:50:42 +0000</pubDate>
		<dc:creator>Merrick Christensen</dc:creator>
				<category><![CDATA[Classes]]></category>
		<category><![CDATA[Extensions]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[graph]]></category>

		<guid isPermaLink="false">http://thejavascriptblog.com/?p=58</guid>
		<description><![CDATA[Let it be known. This class doesn&#8217;t have a lot of options but it is fairly dynamic. If people actually use this class I will make it more customizable to the options and not just the class itself.
While this is nothing special and there are plenty of great MooTools graphing systems out there I wanted [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Let it be known. This class doesn&#8217;t have a lot of options but it is fairly dynamic. If people actually use this class I will make it more customizable to the options and not just the class itself.</p></blockquote>
<p>While this is nothing special and there are plenty of great MooTools graphing systems out there I wanted to build one that animated up and down as well as side to side. I&#8217;m sure there are others that do this but I was curious to learn how and dove in. Any advice, tips, improvements, or feedback is greatly appreciated.</p>
<h2>Usage</h2>
<h3>JavaScript</h3>
<pre>
var myGraph = new Grapher('element_id',{
	json : 'json.php',
	total : '100'
});
</pre>
<h3>JSON</h3>
<p>The JSON productivity number in this case is based on 100 but this class will support any value. When you initiate your graph you set the total option to calculate the percentage. If you are just comparing to other employees you would take the top sells man and calculate the percentage on a bell curve. </p>
<pre>
{"graph": [ { "name" : "insert name", "key" : "1", "productivity" : "92" } ] }
</pre>
<h3>CSS</h3>
<p>The element container that you pass into the initiating function of this graph will be the total set width for the bars at 100%. Make sure you keep that in mind.</p>
<pre>
.graph{
	/* This contains everything in a particular object. The name, and the bar.*/
}

.graph_bar{
	/* This is the actual bar the width changes based on the JSON calculated percentage. You need a background image or color to show the bar as well as a height. */
}

.label{
        /* This is just the place the name is inserted. */
}
</pre>
<h2>Demo and Download</h2>
<blockquote><p>Please wait at least 5 seconds to see the graph refresh and animate. These numbers are being dynamically created via PHP into a JSON file.</p></blockquote>
<p>You can see it in action <a href="http://thejavascriptblog.com/demos/grapher/" target="_blank">here</a>.<br />
Download a zip <a href="http://thejavascriptblog.com/demos/grapher/downloads/grapher.zip" target="_blank">here</a>.</p>
<h2>Credits</h2>
<p>Big thanks to these guys:</p>
<ul>
<li><a href="http://gabebarrientos.com">Gabe Barrientos</a> &#8211; Original Idea</li>
<li><a href="http://davidwalsh.name">David Walsh</a> &#8211; Converting percentage to pixels. </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://thejavascriptblog.com/mootools-grapher-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MooTools Multiple Links Class</title>
		<link>http://thejavascriptblog.com/mootools-multiple-links-class/</link>
		<comments>http://thejavascriptblog.com/mootools-multiple-links-class/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 22:39:48 +0000</pubDate>
		<dc:creator>Merrick Christensen</dc:creator>
				<category><![CDATA[Classes]]></category>
		<category><![CDATA[Extensions]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[MooTools]]></category>

		<guid isPermaLink="false">http://thejavascriptblog.com/?p=51</guid>
		<description><![CDATA[This is a concept based on the idea that maybe you want a link to go to more then one place. Multiple links if you will. 
For Example: A company has a page full of images of employees that work for them with links to their Facebook accounts or personal websites. What if I&#8217;m not [...]]]></description>
			<content:encoded><![CDATA[<p>This is a concept based on the idea that maybe you want a link to go to more then one place. Multiple links if you will. </p>
<p>For Example: A company has a page full of images of employees that work for them with links to their Facebook accounts or personal websites. What if I&#8217;m not a member of Facebook? What if I prefer following them on Twitter? Or maybe I want all of those options. Well this is where my idea came into play. It works like a right-click menu (sort of). When you click the image a styled menu appears with all of the links available. If you leave the menu fades out and lets you continue browsing as normal. This is completely customizable and style able so please feel free to make it blend with your site. </p>
<h2>Usage</h2>
<h3>JavaScript</h3>
<pre>
var myMultipleLink = new MultipleLinks('element_id',{
	'links' : [
			['url','target','title'],
			['url','target','title'],
			['url','target','title']
	]
});
</pre>
<h3>CSS</h3>
<pre>
.multiple_link{
	/* This is the ul */
}

.multiple_link_item{
	/* This is the actual  li item */
}
</pre>
<p>Obviously those are injected with the actual anchor tags and those can be selected using standard selectors.</p>
<h2>Demo and Download</h2>
<p>You can see it in action <a href="http://thejavascriptblog.com/demos/multiple_links/" target="_blank">here</a>.<br />
Download a zip <a href="http://thejavascriptblog.com/demos/multiple_links/downloads/MultipleLinks.zip" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://thejavascriptblog.com/mootools-multiple-links-class/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>MooTools Fader Class</title>
		<link>http://thejavascriptblog.com/mootools-fader-class/</link>
		<comments>http://thejavascriptblog.com/mootools-fader-class/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 17:21:11 +0000</pubDate>
		<dc:creator>Merrick Christensen</dc:creator>
				<category><![CDATA[Classes]]></category>
		<category><![CDATA[Extensions]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[MooTools]]></category>

		<guid isPermaLink="false">http://thejavascriptblog.com/?p=31</guid>
		<description><![CDATA[While this is a very basic piece of code it adds a very nice effect to any item you choose. The MooTools Fader Class will fade any item to a specified opacity and fade it back to a specified opacity.]]></description>
			<content:encoded><![CDATA[<p>While this is a very basic piece of code it adds a very nice effect to any item you choose. The MooTools Fader Class will fade any item to a specified opacity and fade it back to a specified opacity.</p>
<h2>Usage</h2>
<pre>
new Fader(elements);
</pre>
<h2>Parameters and Options</h2>
<p><strong>elements:</strong> Parameter. This is a CSS selector that will be used to select your items.<br />
<strong>fadeTo:</strong> Option. This is the decimal value that your item will be faded to. E.G. 0.3<br />
<strong>fadeFrom:</strong> Option. This is the decimal value that your item will be faded back to.  E.G. 1<br />
<strong>duration:</strong> Option. The speed of the animation in milliseconds. E.G. 250<br />
<strong>transition:</strong> Option. The transition of the animation. E.G. Fx.Transitions.Sine.easeOut </p>
<h2>Demo and Download</h2>
<p>You can see it in action <a href="http://thejavascriptblog.com/demos/fader/" target="_blank">here</a>.<br />
Download a zip <a href="http://thejavascriptblog.com/demos/fader/downloads/Fader.zip" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://thejavascriptblog.com/mootools-fader-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The jQuery Comment Previewer</title>
		<link>http://thejavascriptblog.com/the-jquery-comment-previewer/</link>
		<comments>http://thejavascriptblog.com/the-jquery-comment-previewer/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 07:08:07 +0000</pubDate>
		<dc:creator>Merrick Christensen</dc:creator>
				<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://thejavascriptblog.com/?p=26</guid>
		<description><![CDATA[This is a small piece of code that is mostly the brain child of the incredible David Walsh. His version is written in MooTools and you can see it here. There are a few differences however, I removed some of the basic form validation, I set up a Gravatar function to be called onBlur rather [...]]]></description>
			<content:encoded><![CDATA[<p>This is a small piece of code that is mostly the brain child of the incredible <a href="http://davidwalsh.name/">David Walsh</a>. His version is written in MooTools and you can see it <a href="http://davidwalsh.name/comment-preview">here</a>. There are a few differences however, I removed some of the basic form validation, I set up a Gravatar function to be called onBlur rather then keyUp because the flashing Gravatar on each key stroke just got really annoying. While I prefer MooTools I did this in jQuery because:</p>
<ol>
<li><a href="http://davidwalsh.name/">David Walsh</a> already did an excellent MooTools version.</li>
<li>Depending on its popularity I might make this into a Wordpress plugin. And since most themes and Wordpress are already using jQuery I figured that was the largest market.</li>
<li>Some of his commenters were requesting a jQuery version.</li>
</ol>
<h2>Demo and Download</h2>
<p>You can see it in action <a href="http://thejavascriptblog.com/demos/comment_previewer/">here</a>.<br />
Download a zip <a href="http://thejavascriptblog.com/demos/comment_previewer/downloads/comment_previewer.zip">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://thejavascriptblog.com/the-jquery-comment-previewer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MooTools Content Slider Class</title>
		<link>http://thejavascriptblog.com/mootools-content-slider-class/</link>
		<comments>http://thejavascriptblog.com/mootools-content-slider-class/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 03:32:30 +0000</pubDate>
		<dc:creator>Merrick Christensen</dc:creator>
				<category><![CDATA[Classes]]></category>
		<category><![CDATA[Extensions]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[MooTools]]></category>

		<guid isPermaLink="false">http://thejavascriptblog.com/?p=18</guid>
		<description><![CDATA[So I&#8217;ve been wanting to write a class like this for a while now and I finally got around to it. It creates a content slider. That being said a content slider could be a number of things these days but, this particular one creates a slider that manipulates the position of the content in [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been wanting to write a class like this for a while now and I finally got around to it. It creates a content slider. That being said a content slider could be a number of things these days but, this particular one creates a slider that manipulates the position of the content in a div element. The class constructor takes three arguments and can be called using:</p>
<h2>Usage</h2>
<pre>

new ContentSlider(element, sliderTrack, sliderKnob, options);
</pre>
<h2>Parameters</h2>
<p>The element parameter needs to be an element that is wrapped within a viewport div. The viewport div&#8217;s width will be what is seen. While the element div&#8217;s width will be set using Javascript. In order for this to happen your item_list li element needs to have a set width. While the getSize() method of MooTools works dynamically in Firefox it only counts set properties in Safari and Internet Explorer. Dear MooTools Team, if it is possible please fix this.</p>
<p>The sliderTrack parameter is the background of the slider. The track if you will. It will wrap around the sliderKnob.</p>
<p>The sliderKnob parameter is the actual knob of the slider. The knob or controller needs to have a set width or else it won&#8217;t work in Safari or IE.</p>
<p>The option for itemList is very important as well. It takes an ID of an element and is absolutely necessary. By default it looks for a ul tag with and id of &#8216;item_list&#8217;. </p>
<p>Important thing about this class is it absolutely requires that your HTML markup is properly set up. While something with this many variants is difficult to write a blueprint for, I tried anyway. Reason for this is I have seen this done a lot, mostly in jQuery. I wanted to show that the same effect could be done in a reusable manner with minimal code. I hope someone out there is able to use this.</p>
<h2>jQuery Users</h2>
<p>For those of you who are looking to accomplish this effect in jQuery <a href="http://net.tutsplus.com/tutorials/javascript-ajax/making-a-content-slider-with-jquery-ui/">check this out</a>.</p>
<h2>Demo and Download</h2>
<p>You can see it in action <a href="http://thejavascriptblog.com/demos/content_slider/">here</a>.<br />
Download a zip <a href="http://thejavascriptblog.com/demos/content_slider/downloads/content_slider.zip">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://thejavascriptblog.com/mootools-content-slider-class/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
