<?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: Namespace Your Events</title>
	<atom:link href="http://www.learningjquery.com/2007/09/namespace-your-events/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learningjquery.com/2007/09/namespace-your-events</link>
	<description>Tips, techniques, and tutorials for the jQuery JavaScript library</description>
	<pubDate>Tue, 06 Jan 2009 14:21:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Working with Events, part 2 &#187; Learning jQuery - Tutorials and Information</title>
		<link>http://www.learningjquery.com/2007/09/namespace-your-events/comment-page-1#comment-63757</link>
		<dc:creator>Working with Events, part 2 &#187; Learning jQuery - Tutorials and Information</dc:creator>
		<pubDate>Sun, 07 Dec 2008 21:40:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/09/namespace-your-events#comment-63757</guid>
		<description>[...] For more information about event namespacing, read Brandon Aaron's article, Namespace Your Events. [...]</description>
		<content:encoded><![CDATA[<p>[...] For more information about event namespacing, read Brandon Aaron&#8217;s article, Namespace Your Events. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#160; jQuery Autocomplete Plugin&#160;by&#160;bigredswitch</title>
		<link>http://www.learningjquery.com/2007/09/namespace-your-events/comment-page-1#comment-63478</link>
		<dc:creator>&#160; jQuery Autocomplete Plugin&#160;by&#160;bigredswitch</dc:creator>
		<pubDate>Mon, 10 Nov 2008 00:02:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/09/namespace-your-events#comment-63478</guid>
		<description>[...] like &#8216;click.autocomplete&#8217; were. Turns out that jQuery has a mechanism where you can namespace your events. Here is another writeup about it. Nice [...]</description>
		<content:encoded><![CDATA[<p>[...] like &#8216;click.autocomplete&#8217; were. Turns out that jQuery has a mechanism where you can namespace your events. Here is another writeup about it. Nice [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2007/09/namespace-your-events/comment-page-1#comment-49206</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Tue, 10 Jun 2008 23:27:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/09/namespace-your-events#comment-49206</guid>
		<description>Hi Nanda,

Try something like this:

&lt;pre&gt;&lt;code&gt;$('body').bind('click', function(e) {
  if (e.target.nodeName != TEXTAREA) {
    // do something
  }
});&lt;/code&gt;&lt;/pre&gt;

No need for the unbind.</description>
		<content:encoded><![CDATA[<p>Hi Nanda,</p>
<p>Try something like this:</p>
<pre><code>$('body').bind('click', function(e) {
  if (e.target.nodeName != TEXTAREA) {
    // do something
  }
});</code></pre>
<p>No need for the unbind.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nanda</title>
		<link>http://www.learningjquery.com/2007/09/namespace-your-events/comment-page-1#comment-49166</link>
		<dc:creator>Nanda</dc:creator>
		<pubDate>Tue, 10 Jun 2008 04:19:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/09/namespace-your-events#comment-49166</guid>
		<description>First I would like to congradulate you on this blog and I have found the writeup useful.

However I have a problem where I bind a click function to the entire document but then want to unbind for a specific element in this case a textarea so that clicks inside the textarea do not trigger the anonymous function.  Could using namespace s solve the problem.

I have provided the jQuery code I am using to tdo this below:
&lt;pre&gt;&lt;code&gt;
entire_document.bind('click', function(e)
	{
		jQuery('#textareaid').unbind('click');
                 if (condition)
                 {
                        // do some stuff
                  }
                 else 
                  {
                         // do some other stuff
                   }
        entire_document.unbind('click');
	});</description>
		<content:encoded><![CDATA[<p>First I would like to congradulate you on this blog and I have found the writeup useful.</p>
<p>However I have a problem where I bind a click function to the entire document but then want to unbind for a specific element in this case a textarea so that clicks inside the textarea do not trigger the anonymous function.  Could using namespace s solve the problem.</p>
<p>I have provided the jQuery code I am using to tdo this below:</p>
<pre><code>
entire_document.bind('click', function(e)
	{
		jQuery('#textareaid').unbind('click');
                 if (condition)
                 {
                        // do some stuff
                  }
                 else
                  {
                         // do some other stuff
                   }
        entire_document.unbind('click');
	});</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: bratz games</title>
		<link>http://www.learningjquery.com/2007/09/namespace-your-events/comment-page-1#comment-32401</link>
		<dc:creator>bratz games</dc:creator>
		<pubDate>Sun, 02 Mar 2008 03:24:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/09/namespace-your-events#comment-32401</guid>
		<description>thanks for this great information on Namespace events</description>
		<content:encoded><![CDATA[<p>thanks for this great information on Namespace events</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://www.learningjquery.com/2007/09/namespace-your-events/comment-page-1#comment-26333</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Mon, 07 Jan 2008 02:32:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/09/namespace-your-events#comment-26333</guid>
		<description>It's good,
Hope that the exchange links.
Joshua's Blog
http://www.joshua.org.cn</description>
		<content:encoded><![CDATA[<p>It&#8217;s good,<br />
Hope that the exchange links.<br />
Joshua&#8217;s Blog<br />
<a href="http://www.joshua.org.cn" rel="nofollow">http://www.joshua.org.cn</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.learningjquery.com/2007/09/namespace-your-events/comment-page-1#comment-17771</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Sat, 27 Oct 2007 12:49:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/09/namespace-your-events#comment-17771</guid>
		<description>I'm just begin to use JQuery, Thanks for the info!</description>
		<content:encoded><![CDATA[<p>I&#8217;m just begin to use JQuery, Thanks for the info!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.learningjquery.com/2007/09/namespace-your-events/comment-page-1#comment-16183</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Sun, 14 Oct 2007 09:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/09/namespace-your-events#comment-16183</guid>
		<description>Super just what I needed... !!</description>
		<content:encoded><![CDATA[<p>Super just what I needed&#8230; !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stan</title>
		<link>http://www.learningjquery.com/2007/09/namespace-your-events/comment-page-1#comment-14501</link>
		<dc:creator>Stan</dc:creator>
		<pubDate>Fri, 28 Sep 2007 12:24:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/09/namespace-your-events#comment-14501</guid>
		<description>Thanks for the info here, I was trying to lookup info on the namespaces this morning and couldn't find any on the jQuery website except the reference in the changelog.  Keep up the good work with your blog.  Pax.</description>
		<content:encoded><![CDATA[<p>Thanks for the info here, I was trying to lookup info on the namespaces this morning and couldn&#8217;t find any on the jQuery website except the reference in the changelog.  Keep up the good work with your blog.  Pax.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Resig</title>
		<link>http://www.learningjquery.com/2007/09/namespace-your-events/comment-page-1#comment-14373</link>
		<dc:creator>John Resig</dc:creator>
		<pubDate>Wed, 26 Sep 2007 21:16:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/09/namespace-your-events#comment-14373</guid>
		<description>Oooops! I meant Brandon - great job!</description>
		<content:encoded><![CDATA[<p>Oooops! I meant Brandon - great job!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
