<?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: Using Delegate and Undelegate in jQuery 1.4.2</title>
	<atom:link href="http://www.learningjquery.com/2010/03/using-delegate-and-undelegate-in-jquery-1-4-2/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learningjquery.com/2010/03/using-delegate-and-undelegate-in-jquery-1-4-2</link>
	<description>Tips, techniques, and tutorials for the jQuery JavaScript library</description>
	<lastBuildDate>Wed, 08 Feb 2012 13:50:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Flip your Tip: Keeping the Event-delegation Tooltip in View &#124; Codigos Utiles</title>
		<link>http://www.learningjquery.com/2010/03/using-delegate-and-undelegate-in-jquery-1-4-2/comment-page-1#comment-83748</link>
		<dc:creator>Flip your Tip: Keeping the Event-delegation Tooltip in View &#124; Codigos Utiles</dc:creator>
		<pubDate>Thu, 02 Jun 2011 19:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1004#comment-83748</guid>
		<description>[...] method, we can use that one instead. Jordan Boesch recently wrote a nice introductory article on Using Delegate and Undelegate in jQuery, so check that out if you&#8217;re uncertain about what the method does. One thing I&#8217;d like [...]</description>
		<content:encoded><![CDATA[<p>[...] method, we can use that one instead. Jordan Boesch recently wrote a nice introductory article on Using Delegate and Undelegate in jQuery, so check that out if you&#8217;re uncertain about what the method does. One thing I&#8217;d like [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Tucker</title>
		<link>http://www.learningjquery.com/2010/03/using-delegate-and-undelegate-in-jquery-1-4-2/comment-page-1#comment-83585</link>
		<dc:creator>Justin Tucker</dc:creator>
		<pubDate>Mon, 28 Mar 2011 05:13:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1004#comment-83585</guid>
		<description>So in a sense, .delegate() can listen for new elements to be added to the Dom. What is the performance hit for always listening, if if there is even a hit at all?</description>
		<content:encoded><![CDATA[<p>So in a sense, .delegate() can listen for new elements to be added to the Dom. What is the performance hit for always listening, if if there is even a hit at all?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://www.learningjquery.com/2010/03/using-delegate-and-undelegate-in-jquery-1-4-2/comment-page-1#comment-83436</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Sat, 29 Jan 2011 12:22:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1004#comment-83436</guid>
		<description>Thank you for the post. I&#039;m new with delegate and this helped much. Btw, the multiple delegate works now, see:
&lt;pre&gt;&lt;code&gt;
// WORKS NOW withoud plugin :-)
$(&#039;ul&#039;).delegate(&#039;li&#039;, {
  click: function(e){
    // Something on click
  },
  mouseover: function(e){
    // Something on mouse over
  }
});&lt;/code&gt;&lt;/pre&gt;

You may update this.

Kind regards
Patrick</description>
		<content:encoded><![CDATA[<p>Thank you for the post. I&#8217;m new with delegate and this helped much. Btw, the multiple delegate works now, see:</p>
<pre><code>
// WORKS NOW withoud plugin :-)
$('ul').delegate('li', {
  click: function(e){
    // Something on click
  },
  mouseover: function(e){
    // Something on mouse over
  }
});</code></pre>
<p>You may update this.</p>
<p>Kind regards<br />
Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Accessing newly created elements using .live() function in jQuery - Aakash Web</title>
		<link>http://www.learningjquery.com/2010/03/using-delegate-and-undelegate-in-jquery-1-4-2/comment-page-1#comment-81759</link>
		<dc:creator>Accessing newly created elements using .live() function in jQuery - Aakash Web</dc:creator>
		<pubDate>Sat, 21 Aug 2010 15:51:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1004#comment-81759</guid>
		<description>[...] Using Delegate and Undelegate in jQuery 1.4.2 [...]</description>
		<content:encoded><![CDATA[<p>[...] Using Delegate and Undelegate in jQuery 1.4.2 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Help</title>
		<link>http://www.learningjquery.com/2010/03/using-delegate-and-undelegate-in-jquery-1-4-2/comment-page-1#comment-81658</link>
		<dc:creator>Help</dc:creator>
		<pubDate>Thu, 12 Aug 2010 09:05:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1004#comment-81658</guid>
		<description>please me for autocomplete using  this version of jquery with webservice and returning a value in hidden field.

thank you.


sorry for my english</description>
		<content:encoded><![CDATA[<p>please me for autocomplete using  this version of jquery with webservice and returning a value in hidden field.</p>
<p>thank you.</p>
<p>sorry for my english</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: siva</title>
		<link>http://www.learningjquery.com/2010/03/using-delegate-and-undelegate-in-jquery-1-4-2/comment-page-1#comment-81105</link>
		<dc:creator>siva</dc:creator>
		<pubDate>Fri, 23 Jul 2010 13:37:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1004#comment-81105</guid>
		<description>Hi,
Thank you for your reply and the GOOD ARTICLE</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thank you for your reply and the GOOD ARTICLE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2010/03/using-delegate-and-undelegate-in-jquery-1-4-2/comment-page-1#comment-81104</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Fri, 23 Jul 2010 12:28:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1004#comment-81104</guid>
		<description>Hi there,

Take a look at &lt;a href=&quot;http://www.learningjquery.com/2010/07/great-ways-to-learn-jquery&quot; rel=&quot;nofollow&quot;&gt;this article&lt;/a&gt;, which was posted recently.</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>Take a look at <a href="http://www.learningjquery.com/2010/07/great-ways-to-learn-jquery" rel="nofollow">this article</a>, which was posted recently.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: siva</title>
		<link>http://www.learningjquery.com/2010/03/using-delegate-and-undelegate-in-jquery-1-4-2/comment-page-1#comment-81103</link>
		<dc:creator>siva</dc:creator>
		<pubDate>Fri, 23 Jul 2010 12:18:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1004#comment-81103</guid>
		<description>Hi im new to jquery can you suggest tutotrials or ebooks or good sites that are practical at the same time easy to undestand your reply is really helpful</description>
		<content:encoded><![CDATA[<p>Hi im new to jquery can you suggest tutotrials or ebooks or good sites that are practical at the same time easy to undestand your reply is really helpful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brad</title>
		<link>http://www.learningjquery.com/2010/03/using-delegate-and-undelegate-in-jquery-1-4-2/comment-page-1#comment-81050</link>
		<dc:creator>brad</dc:creator>
		<pubDate>Wed, 21 Jul 2010 18:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1004#comment-81050</guid>
		<description>What Brandon is saying is that you&#039;re missing the point of delegation.  You never want to do $(&quot;#container a&quot;).delegate...  delegation is attaching the events to the container, not the direct element.  Also .delegate doesn&#039;t break chainability as your comment on the final example says, as it always returns the right jQuery object, the one referencing the container.  So this works:

$(&quot;#container&quot;)
  .delegate(&quot;p&quot;,&quot;click&quot;,function(){})
  .delegate(&quot;a&quot;,&quot;click&quot;,function(){});</description>
		<content:encoded><![CDATA[<p>What Brandon is saying is that you&#8217;re missing the point of delegation.  You never want to do $(&#8220;#container a&#8221;).delegate&#8230;  delegation is attaching the events to the container, not the direct element.  Also .delegate doesn&#8217;t break chainability as your comment on the final example says, as it always returns the right jQuery object, the one referencing the container.  So this works:</p>
<p>$(&#8220;#container&#8221;)<br />
  .delegate(&#8220;p&#8221;,&#8221;click&#8221;,function(){})<br />
  .delegate(&#8220;a&#8221;,&#8221;click&#8221;,function(){});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edwin</title>
		<link>http://www.learningjquery.com/2010/03/using-delegate-and-undelegate-in-jquery-1-4-2/comment-page-1#comment-80509</link>
		<dc:creator>Edwin</dc:creator>
		<pubDate>Tue, 22 Jun 2010 10:19:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=1004#comment-80509</guid>
		<description>hey thanks for this article.. i understand more about the difference..

one question. If you bind live directly to an id is  it then better than delegate? 

$(&#039;#idname&#039;).live(click(function){

})

If you use live like this does it bubble also?</description>
		<content:encoded><![CDATA[<p>hey thanks for this article.. i understand more about the difference..</p>
<p>one question. If you bind live directly to an id is  it then better than delegate? </p>
<p>$(&#8216;#idname&#8217;).live(click(function){</p>
<p>})</p>
<p>If you use live like this does it bubble also?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced (User agent is rejected)
Database Caching 3/31 queries in 0.007 seconds using disk: basic
Object Caching 369/400 objects using disk: basic
Content Delivery Network via learningjquery.kswedberg.netdna-cdn.com

Served from: www.learningjquery.com @ 2012-02-08 17:49:55 -->
