<?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>Stereo Interactive &#38; Design &#187; prototype</title>
	<atom:link href="http://stereointeractive.com/blog/tag/prototype/feed/" rel="self" type="application/rss+xml" />
	<link>http://stereointeractive.com/blog</link>
	<description>Development Blog</description>
	<lastBuildDate>Wed, 07 Jul 2010 19:16:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>IE 6 getElementsById() and prototype $() function return dom elements by *name*</title>
		<link>http://stereointeractive.com/blog/2009/07/27/ie-6-getelementsbyid-and-prototype-function-return-dom-elements-by-name/</link>
		<comments>http://stereointeractive.com/blog/2009/07/27/ie-6-getelementsbyid-and-prototype-function-return-dom-elements-by-name/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 16:07:29 +0000</pubDate>
		<dc:creator>Scott Meves</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[prototype]]></category>

		<guid isPermaLink="false">http://stereointeractive.com/blog/2009/07/27/ie-6-getelementsbyid-and-prototype-function-return-dom-elements-by-name/</guid>
		<description><![CDATA[I can&#8217;t believe I had not run into this yet, but today I had a page that had an element (an anchor) with a name attribute (&#8220;floorplans&#8221;), and further down the page a div with that id (&#8220;floorplans&#8221;). When I tried to dynamically load content into my div using $(&#8216;floorplans&#8217;), things were getting all out [...]]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t believe I had not run into this yet, but today I had a page that had an element (an anchor) with a name attribute (&#8220;floorplans&#8221;), and further down the page a div with that id (&#8220;floorplans&#8221;). When I tried to dynamically load content into my div using $(&#8216;floorplans&#8217;), things were getting all out of control on IE 6. Turns out IE6&#8217;s document.getElementById returns the first element whose id OR name matches the string, and of course Prototype&#8217;s $() function relies on the browser&#8217;s own getElementById(). Lesson learned! </p>
]]></content:encoded>
			<wfw:commentRss>http://stereointeractive.com/blog/2009/07/27/ie-6-getelementsbyid-and-prototype-function-return-dom-elements-by-name/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Get value of radio button group using prototype</title>
		<link>http://stereointeractive.com/blog/2008/06/05/get-radio-button-value-using-prototype/</link>
		<comments>http://stereointeractive.com/blog/2008/06/05/get-radio-button-value-using-prototype/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 17:50:06 +0000</pubDate>
		<dc:creator>Scott Meves</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[prototype]]></category>

		<guid isPermaLink="false">http://stereointeractive.com/blog/2008/06/05/get-radio-button-value-using-prototype/</guid>
		<description><![CDATA[If you want to get the value of the selected element of a radio group, prototype makes this easy. There is more than one way to do it. I&#8217;ll update this post as better methods surface. Check out code after the jump.


$$&#40;'input:checked[type=&#34;radio&#34;][name=&#34;my_radio_group&#34;]'&#41;.pluck&#40;'value'&#41;;

What this does is use css selectors to pull out an input element with [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to get the value of the selected element of a radio group, prototype makes this easy. There is more than one way to do it. I&#8217;ll update this post as better methods surface. Check out code after the jump.</p>
<p><span id="more-74"></span></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$$<span class="br0">&#40;</span><span class="st0">'input:checked[type=&quot;radio&quot;][name=&quot;my_radio_group&quot;]'</span><span class="br0">&#41;</span>.<span class="me1">pluck</span><span class="br0">&#40;</span><span class="st0">'value'</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>

<p>What this does is use css selectors to pull out an input element with the attribute &#8220;checked&#8221; of type &#8220;radio&#8221; and with the name&#8221;my_radio_group&#8221;. The $$ function returns an array, although in this case it is only one element long. &#8220;pluck&#8221; returns the given attribute (in our case we want the value attribute) for the elements in the array.</p>
]]></content:encoded>
			<wfw:commentRss>http://stereointeractive.com/blog/2008/06/05/get-radio-button-value-using-prototype/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
