<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: JQuery Fun</title>
	<link>http://www.terminally-incoherent.com/blog/2008/03/19/jquery-fun/</link>
	<description>Utterly random, incoherent and disjointed rants and ramblings...</description>
	<pubDate>Fri, 29 Aug 2008 08:27:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2008/03/19/jquery-fun/#comment-8554</link>
		<pubDate>Wed, 19 Mar 2008 19:59:08 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/03/19/jquery-fun/#comment-8554</guid>
					<description>Yeah, I had a run in with dojo at one point, but I remember it was big and confusing mess. At least that was my first impression, and I didn't really work with it long enough to fully appreciate it.

I also saw some really cool stuff being done with prototype but I never actually used it. 

I kinda fell in love with JQuery because it was so tiny/simple, and yet could do most of the things her bigger brothers and sisters were capable of. :)</description>
		<content:encoded><![CDATA[<p>Yeah, I had a run in with dojo at one point, but I remember it was big and confusing mess. At least that was my first impression, and I didn&#8217;t really work with it long enough to fully appreciate it.</p>
<p>I also saw some really cool stuff being done with prototype but I never actually used it. </p>
<p>I kinda fell in love with JQuery because it was so tiny/simple, and yet could do most of the things her bigger brothers and sisters were capable of. <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_smile.gif" alt=")" class="wp-smiley" />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Adam Kahtava</title>
		<link>http://www.terminally-incoherent.com/blog/2008/03/19/jquery-fun/#comment-8553</link>
		<pubDate>Wed, 19 Mar 2008 19:35:14 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/03/19/jquery-fun/#comment-8553</guid>
					<description>Many of the other JavaScript libraries (YUI, Scriptaculous, even the ASP.NET AJAX Client Side libraries) offer capabilities almost identical to JQuery. Scriptaculous / Prototype is probably closest to JQuery. The nice thing about these JavaScript libraries is that they're cross platform compatible, and built around the Event Driven Programming Model - so they really force you to think differently.</description>
		<content:encoded><![CDATA[<p>Many of the other JavaScript libraries (YUI, Scriptaculous, even the ASP.NET AJAX Client Side libraries) offer capabilities almost identical to JQuery. Scriptaculous / Prototype is probably closest to JQuery. The nice thing about these JavaScript libraries is that they&#8217;re cross platform compatible, and built around the Event Driven Programming Model - so they really force you to think differently.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2008/03/19/jquery-fun/#comment-8552</link>
		<pubDate>Wed, 19 Mar 2008 19:24:05 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/03/19/jquery-fun/#comment-8552</guid>
					<description>Hey, I actually didn't think about that. Good one! Still, JQuery code remains slightly more readable.

I could do something like this:

&lt;pre lang="java"&gt;$(document).ready(function() {
    $("#nice &gt; a:even").click(function() {
        // on click code goes here
    });
});&lt;/pre&gt;

This would only add the on-click function to the even numbered link inside a container with the id of nice which would probably require more code in your example. :mrgreen:</description>
		<content:encoded><![CDATA[<p>Hey, I actually didn&#8217;t think about that. Good one! Still, JQuery code remains slightly more readable.</p>
<p>I could do something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="java">$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span>function<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    $<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;#nice &gt; a:even&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">click</span><span style="color: #66cc66;">&#40;</span>function<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
        <span style="color: #808080; font-style: italic;">// on click code goes here</span>
    <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>This would only add the on-click function to the even numbered link inside a container with the id of nice which would probably require more code in your example.  <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_mrgreen.gif" alt="mrgreen" class="wp-smiley" />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Adam Kahtava</title>
		<link>http://www.terminally-incoherent.com/blog/2008/03/19/jquery-fun/#comment-8551</link>
		<pubDate>Wed, 19 Mar 2008 18:48:18 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/03/19/jquery-fun/#comment-8551</guid>
					<description>To make things even more fun... :)

In the first example you could have listened to a container object like the window.onclick, then filtered out the event type, this could have probably distilled your first example into something similar to your later example.

Something like: 

window.onclick = function onClickFunction(myEvent){
    if(myEvent.target === 'A'){
       // the on click code goes here
    }
}</description>
		<content:encoded><![CDATA[<p>To make things even more fun&#8230; <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_smile.gif" alt=")" class="wp-smiley" /> </p>
<p>In the first example you could have listened to a container object like the window.onclick, then filtered out the event type, this could have probably distilled your first example into something similar to your later example.</p>
<p>Something like: </p>
<p>window.onclick = function onClickFunction(myEvent){<br />
    if(myEvent.target === &#8216;A&#8217;){<br />
       // the on click code goes here<br />
    }<br />
}
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.459 seconds -->
