<?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>
	<lastBuildDate>Sat, 13 Mar 2010 15:20:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ken</title>
		<link>http://www.learningjquery.com/2007/09/namespace-your-events/comment-page-1#comment-79674</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Sat, 06 Feb 2010 13:36:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/09/namespace-your-events#comment-79674</guid>
		<description>In jQuery 1.3.2 , you can also trigger an &quot;exclusive&quot; event, meaning only non-namespaced events are triggered. You do this by supplying e.g. &quot;click!&quot; as the event name.
&lt;a href=&quot;http://longgoldenears.blogspot.com/2010/02/jquery-namespaced-events-exclusive.html&quot; rel=&quot;nofollow&quot;&gt;See my post here&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>In jQuery 1.3.2 , you can also trigger an &#8220;exclusive&#8221; event, meaning only non-namespaced events are triggered. You do this by supplying e.g. &#8220;click!&#8221; as the event name.<br />
<a href="http://longgoldenears.blogspot.com/2010/02/jquery-namespaced-events-exclusive.html" rel="nofollow">See my post here</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Working with Events, part 2 &#124; haojii</title>
		<link>http://www.learningjquery.com/2007/09/namespace-your-events/comment-page-1#comment-79575</link>
		<dc:creator>Working with Events, part 2 &#124; haojii</dc:creator>
		<pubDate>Tue, 19 Jan 2010 14:11:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/09/namespace-your-events#comment-79575</guid>
		<description>[...] 请阅读Brandon Aaron的文章以了解更多关于事件名称空间的知识： Namespace Your Events. [...]</description>
		<content:encoded><![CDATA[<p>[...] 请阅读Brandon Aaron的文章以了解更多关于事件名称空间的知识： Namespace Your Events. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arjun</title>
		<link>http://www.learningjquery.com/2007/09/namespace-your-events/comment-page-1#comment-78903</link>
		<dc:creator>Arjun</dc:creator>
		<pubDate>Sat, 26 Sep 2009 08:55:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/09/namespace-your-events#comment-78903</guid>
		<description>Thanks, that was what I was looking for :)</description>
		<content:encoded><![CDATA[<p>Thanks, that was what I was looking for :)</p>
]]></content:encoded>
	</item>
	<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&#039;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;$(&#039;body&#039;).bind(&#039;click&#039;, 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(&#039;click&#039;, function(e)
	{
		jQuery(&#039;#textareaid&#039;).unbind(&#039;click&#039;);
                 if (condition)
                 {
                        // do some stuff
                  }
                 else 
                  {
                         // do some other stuff
                   }
        entire_document.unbind(&#039;click&#039;);
	});</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&#039;s good,
Hope that the exchange links.
Joshua&#039;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&#039;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>
</channel>
</rss>
