<?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"
	>
<channel>
	<title>Comments on: Event Handling versus  Event Delegation</title>
	<atom:link href="http://www.wait-till-i.com/2006/09/24/event-handling-versus-event-delegation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wait-till-i.com/2006/09/24/event-handling-versus-event-delegation/</link>
	<description>Chris Heilmann - Accessibility, Web Development and Pragmatism - can talk, will travel</description>
	<pubDate>Fri, 05 Dec 2008 11:26:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Steve Bush</title>
		<link>http://www.wait-till-i.com/2006/09/24/event-handling-versus-event-delegation/#comment-8081</link>
		<dc:creator>Steve Bush</dc:creator>
		<pubDate>Fri, 25 Jul 2008 07:25:53 +0000</pubDate>
		<guid isPermaLink="false">#comment-8081</guid>
		<description>This should be called "The benefits of using Event Bubbling" and not have a new obscure term Event Delegation invented for it.</description>
		<content:encoded><![CDATA[<p>This should be called &#8220;The benefits of using Event Bubbling&#8221; and not have a new obscure term Event Delegation invented for it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego Perini</title>
		<link>http://www.wait-till-i.com/2006/09/24/event-handling-versus-event-delegation/#comment-6903</link>
		<dc:creator>Diego Perini</dc:creator>
		<pubDate>Wed, 16 Jan 2008 22:28:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-6903</guid>
		<description>Christian,
this is the most well written description of Event Delegation, my congrats, info on this is scarce.

I used it so much that I should make my own scripts to handle that with selectors. I can actually handle also the "focus" and "blur" events cross-browser by implementing a small trick in the handling/fixing of events.

You can see my work on delegates here:

http://javascript.nwbox.com/NWEvents/

Look under Delegates to see the only example specific to this method bound to CSS3 Selectors.
Though my syntax is not that short compared to jQuery or similar, I think the idea is unique.

I was searching for "delegates" related to "onload" problems but was not able to find anywhere talking about the fact that "Event Delegation" can lead to avoid having to resort to "onload" or similar method to attach functionality to the page at initial startup.

You seem to have a deep knowledge of these techniques, I would like your suggestion and comments on my implementation and possible improvements.

Do you mind if I copy (with credits) some Delegation example to include on my site ?</description>
		<content:encoded><![CDATA[<p>Christian,<br />
this is the most well written description of Event Delegation, my congrats, info on this is scarce.</p>
<p>I used it so much that I should make my own scripts to handle that with selectors. I can actually handle also the &#8220;focus&#8221; and &#8220;blur&#8221; events cross-browser by implementing a small trick in the handling/fixing of events.</p>
<p>You can see my work on delegates here:</p>
<p><a href="http://javascript.nwbox.com/NWEvents/" rel="nofollow">http://javascript.nwbox.com/NWEvents/</a></p>
<p>Look under Delegates to see the only example specific to this method bound to <span class="caps">CSS3</span> Selectors.<br />
Though my syntax is not that short compared to jQuery or similar, I think the idea is unique.</p>
<p>I was searching for &#8220;delegates&#8221; related to &#8220;onload&#8221; problems but was not able to find anywhere talking about the fact that &#8220;Event Delegation&#8221; can lead to avoid having to resort to &#8220;onload&#8221; or similar method to attach functionality to the page at initial startup.</p>
<p>You seem to have a deep knowledge of these techniques, I would like your suggestion and comments on my implementation and possible improvements.</p>
<p>Do you mind if I copy (with credits) some Delegation example to include on my site ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.wait-till-i.com/2006/09/24/event-handling-versus-event-delegation/#comment-5830</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 04 Oct 2007 20:55:16 +0000</pubDate>
		<guid isPermaLink="false">#comment-5830</guid>
		<description>How do you go about using either (bubbling or handling) to the history plugin by Klaus?


$('a.remote').remote('#place', function() {
                    if (window.console &#038;&#038; window.console.info) {
                        console.info('content loaded');
                    }
                    
                });
                

$.ajaxHistory.initialize();</description>
		<content:encoded><![CDATA[<p>How do you go about using either (bubbling or handling) to the history plugin by Klaus?</p>
<p>$(&#8217;a.remote&#8217;).remote(&#8217;#place&#8217;, function() {<br />
                    if (window.console &amp;&amp; window.console.info) {<br />
                        console.info(&#8217;content loaded&#8217;);<br />
                    }</p>
<p>                });
                </p>
<p>$.ajaxHistory.initialize();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Heilmann</title>
		<link>http://www.wait-till-i.com/2006/09/24/event-handling-versus-event-delegation/#comment-4461</link>
		<dc:creator>Chris Heilmann</dc:creator>
		<pubDate>Sat, 28 Apr 2007 07:13:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-4461</guid>
		<description>Anthony this is as easy, just add another handler to the UL elements inside the others or handle the functionality in the listener method. The listener method gets everything in the element, so you can compare the nodeName of the target element with UL and do other stuff.</description>
		<content:encoded><![CDATA[<p>Anthony this is as easy, just add another handler to the UL elements inside the others or handle the functionality in the listener method. The listener method gets everything in the element, so you can compare the nodeName of the target element with UL and do other stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony Ettinger</title>
		<link>http://www.wait-till-i.com/2006/09/24/event-handling-versus-event-delegation/#comment-4460</link>
		<dc:creator>Anthony Ettinger</dc:creator>
		<pubDate>Fri, 27 Apr 2007 22:44:37 +0000</pubDate>
		<guid isPermaLink="false">#comment-4460</guid>
		<description>I understand the reasoning if you want all your child elements to do the event, but what should I do in the case of a behavior like:

ul.onmouseout=closeAllChildren;

...

The problem I'm having is that all the children elements will also call the function when I leave them, but am still inside the UL element.

Please help, this has been escaping me for awhile.
</description>
		<content:encoded><![CDATA[<p>I understand the reasoning if you want all your child elements to do the event, but what should I do in the case of a behavior like:</p>
<p>ul.onmouseout=closeAllChildren;</p>
<p>&#8230;</p>
<p>The problem I&#8217;m having is that all the children elements will also call the function when I leave them, but am still inside the UL element.</p>
<p>Please help, this has been escaping me for awhile.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
