<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Some jQuery Shortcuts</title>
	<atom:link href="http://james.padolsey.com/javascript/some-jquery-shortcuts/feed/" rel="self" type="application/rss+xml" />
	<link>http://james.padolsey.com/javascript/some-jquery-shortcuts/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 08 Mar 2010 01:21:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: SEO Man</title>
		<link>http://james.padolsey.com/javascript/some-jquery-shortcuts/comment-page-1/#comment-14093</link>
		<dc:creator>SEO Man</dc:creator>
		<pubDate>Sat, 13 Jun 2009 12:08:53 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=163#comment-14093</guid>
		<description>Excellent article. Been looking for some info on reducing the size of my code and &quot;Adding or changing attributes in bulk&quot; works a treat.</description>
		<content:encoded><![CDATA[<p>Excellent article. Been looking for some info on reducing the size of my code and &#8220;Adding or changing attributes in bulk&#8221; works a treat.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blair Mitchelmore</title>
		<link>http://james.padolsey.com/javascript/some-jquery-shortcuts/comment-page-1/#comment-1196</link>
		<dc:creator>Blair Mitchelmore</dc:creator>
		<pubDate>Tue, 16 Dec 2008 00:45:35 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=163#comment-1196</guid>
		<description>Strictly speaking, self-closing elements don&#039;t always work, primarily because jQuery uses the browser&#039;s built in html parsing to save itself the work. So some browsers, ok basically just IE, will screw up certain elements if you use an empty or self-closing tag. I ran into that subtle bug a little while ago while debugging a bizarre error in IE (is there any other?).</description>
		<content:encoded><![CDATA[<p>Strictly speaking, self-closing elements don&#8217;t always work, primarily because jQuery uses the browser&#8217;s built in html parsing to save itself the work. So some browsers, ok basically just IE, will screw up certain elements if you use an empty or self-closing tag. I ran into that subtle bug a little while ago while debugging a bizarre error in IE (is there any other?).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://james.padolsey.com/javascript/some-jquery-shortcuts/comment-page-1/#comment-505</link>
		<dc:creator>James</dc:creator>
		<pubDate>Tue, 11 Nov 2008 11:12:20 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=163#comment-505</guid>
		<description>Nice tip Ali! :) ... Using the &lt;code&gt;html()&lt;/code&gt; is pretty much the same as:

&lt;pre lang=&quot;javascript&quot;&gt;
this.empty().append( value ) // Line 437 jQuery core.
&lt;/pre&gt;

Thanks Shane, yeh, &lt;code&gt;Animate&lt;/code&gt; is great, I never bother using the built in &lt;code&gt;fadeIn&lt;/code&gt;/&lt;code&gt;fadeOut&lt;/code&gt;/&lt;code&gt;slideDown&lt;/code&gt; etc. anymore, I like having more control.</description>
		<content:encoded><![CDATA[<p>Nice tip Ali! <img src='http://james.padolsey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8230; Using the <code>html()</code> is pretty much the same as:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span class="kw1">this</span>.<span class="me1">empty</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="me1">append</span><span class="br0">&#40;</span> value <span class="br0">&#41;</span> <span class="co1">// Line 437 jQuery core.</span></pre></div></div>

<p>Thanks Shane, yeh, <code>Animate</code> is great, I never bother using the built in <code>fadeIn</code>/<code>fadeOut</code>/<code>slideDown</code> etc. anymore, I like having more control.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane</title>
		<link>http://james.padolsey.com/javascript/some-jquery-shortcuts/comment-page-1/#comment-502</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Mon, 10 Nov 2008 12:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=163#comment-502</guid>
		<description>Good shortcuts.  

animate does give you fantastic control over things, and chaining is essential!  Cheers.</description>
		<content:encoded><![CDATA[<p>Good shortcuts.  </p>
<p>animate does give you fantastic control over things, and chaining is essential!  Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali7</title>
		<link>http://james.padolsey.com/javascript/some-jquery-shortcuts/comment-page-1/#comment-366</link>
		<dc:creator>Ali7</dc:creator>
		<pubDate>Sat, 01 Nov 2008 17:33:29 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=163#comment-366</guid>
		<description>&lt;pre lang=&quot;javascript&quot;&gt;
$(function(){...});&lt;/pre&gt;
This is a very good one, taking the fact that this function is the most-used, your shortcut is very useful..

One other thing I&#039;d like to add :
Using 
&lt;pre lang=&quot;javascript&quot;&gt;
$(&#039;div#foo&#039;).html()
&lt;/pre&gt;
directly instead of clearing and re-appending, especially for recurring Ajax-updated messages ..
Of course this is similar to old-school element.innerHTML approach.

:)</description>
		<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span>...<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>

<p>This is a very good one, taking the fact that this function is the most-used, your shortcut is very useful..</p>
<p>One other thing I&#8217;d like to add :<br />
Using</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span class="br0">&#40;</span><span class="st0">'div#foo'</span><span class="br0">&#41;</span>.<span class="me1">html</span><span class="br0">&#40;</span><span class="br0">&#41;</span></pre></div></div>

<p>directly instead of clearing and re-appending, especially for recurring Ajax-updated messages ..<br />
Of course this is similar to old-school element.innerHTML approach.</p>
<p> <img src='http://james.padolsey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
