<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Colin Mollenhour&#039;s Technical Blog &#187; prototype</title>
	<atom:link href="http://colin.mollenhour.com/tag/prototype/feed/" rel="self" type="application/rss+xml" />
	<link>http://colin.mollenhour.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 13 Oct 2011 21:08:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Event Delegation for Prototype</title>
		<link>http://colin.mollenhour.com/2009/03/23/event-delegation-for-prototype/</link>
		<comments>http://colin.mollenhour.com/2009/03/23/event-delegation-for-prototype/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 23:16:48 +0000</pubDate>
		<dc:creator>colin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[prototype]]></category>

		<guid isPermaLink="false">http://colin.mollenhour.com/?p=33</guid>
		<description><![CDATA[Today I&#8217;d like to present my own rendition of an Event Delegator class based on Prototype. Event Delegation can be used to improve performance and code simplicity by observing one parent element and triggering events on the children when applicable rather than observing each child element individually. This has the added benefit that new child [...]]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;d like to present my own rendition of an Event Delegator class based on Prototype. Event Delegation can be used to improve performance and code simplicity by observing one parent element and triggering events on the children when applicable rather than observing each child element individually.</p>
<p><span id="more-33"></span><br />
This has the added benefit that new child elements do not require new event observers, and removed child elements do not create memory leaks or require any cleanup. My event delegator class supports both CSS selectors for this purpose as well as <strong>binary functions</strong>. An example usage scenario is with my ToolTip class. Fancy Javascript tooltips can be added and removed from a page for <strong>free</strong>, even as the result of an Ajax update by simply adding a recognized CSS class.</p>
<p>This was actually written back in July &#8217;08, but I&#8217;d like to post it here now. It could use a little more thorough documentation, but here it is:<br />
<script src="http://gist.github.com/83824.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://colin.mollenhour.com/2009/03/23/event-delegation-for-prototype/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ajax.DoubleCombo update</title>
		<link>http://colin.mollenhour.com/2008/11/11/ajaxdoublecombo-update/</link>
		<comments>http://colin.mollenhour.com/2008/11/11/ajaxdoublecombo-update/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 09:30:15 +0000</pubDate>
		<dc:creator>colin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[prototype]]></category>

		<guid isPermaLink="false">http://colin.mollenhour.com/?p=12</guid>
		<description><![CDATA[Due to a recent request about my Ajax.DoubleCombo class, I have updated it to support automatic updates trickling down when the server returns a &#8220;selected&#8221; value or the default value is non-void. In the process, I added some Prototype 1.6 custom events, namely doubleCombo:update and doubleCombo:clearSlaves which in turn added support for what I will [...]]]></description>
			<content:encoded><![CDATA[<p>Due to a recent request about my <a href="http://colin.mollenhour.com/doublecombo/">Ajax.DoubleCombo</a> class, I have updated it to support automatic updates trickling down when the server returns a &#8220;selected&#8221; value or the default value is non-void. In the process, I added some Prototype 1.6 custom events, namely doubleCombo:update and doubleCombo:clearSlaves which in turn added support for what I will call &#8220;branching&#8221;. That is, support for multiple slave selects at each level. I don&#8217;t know if anyone has a use for this but it is now supported&#8230;</p>
<p>Here is the page with the code, docs and demo: <a href="http://colin.mollenhour.com/doublecombo/">Ajax.DoubleCombo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://colin.mollenhour.com/2008/11/11/ajaxdoublecombo-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

