<?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>westworld: a webmasters best friend &#187; Prototypejs</title>
	<atom:link href="http://www.westworld.be/tag/prototypejs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.westworld.be</link>
	<description>A webmasters best friend</description>
	<lastBuildDate>Tue, 22 Nov 2011 10:58:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Checking radiobuttons with Prototype</title>
		<link>http://www.westworld.be/a-note-to-self/checking-radiobuttons-with-prototype/</link>
		<comments>http://www.westworld.be/a-note-to-self/checking-radiobuttons-with-prototype/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 08:42:27 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[a note to self]]></category>
		<category><![CDATA[Prototypejs]]></category>
		<category><![CDATA[radiobutton]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=14</guid>
		<description><![CDATA[A small example of for working with radiobuttons in Prototype<p class="read-more"><a href="http://www.westworld.be/a-note-to-self/checking-radiobuttons-with-prototype/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.westworld.be/a-note-to-self/checking-radiobuttons-with-prototype/" title="Checking radiobuttons with Prototype"></a><pre class="javascript">example:
&lt;input type='radio' name='test' value='1' /&gt;
&lt;input type='radio' name='test' id='nr2' value='2' /&gt;
&lt;input type='radio' name='test' value='3' /&gt;

$$<span style="color: #66cc66;">(</span><span style="color: #3366cc;">"input[type=radio][name='test'][value='3']"</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">[</span><span style="color: #cc0000;">0</span><span style="color: #66cc66;">]</span>.<span style="color: #006600;">writeAttribute</span><span style="color: #66cc66;">(</span><span style="color: #3366cc;">"checked"</span>, <span style="color: #3366cc;">"checked"</span><span style="color: #66cc66;">)</span>;
or
$<span style="color: #66cc66;">(</span><span style="color: #3366cc;">"nr2"</span><span style="color: #66cc66;">)</span>.<span style="color: #006600;">writeAttribute</span><span style="color: #66cc66;">(</span><span style="color: #3366cc;">"checked"</span>, <span style="color: #3366cc;">"checked"</span><span style="color: #66cc66;">)</span>;</pre>
<h4>Related Blogs</h4>
<ul class="pc_pingback">
<li class="hdl" style="list-style: none">Related Blogs on <strong>Prototypejs</strong></li>
<li><a rel="nofollow" href="http://pie.miracleblue.com/2008/09/09/using-prototypejs-objectextend-a-very-simple-example/">Using PrototypeJS Object.extend, a very simple example</a></li>
</ul>
<ul class="pc_pingback">
<li class="hdl" style="list-style: none">Related Blogs on <strong>radiobutton</strong></li>
<li><a rel="nofollow" href="http://blog.swishzone.com/?p=453">Radio Button Component</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/a-note-to-self/checking-radiobuttons-with-prototype/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prototype stripTags</title>
		<link>http://www.westworld.be/a-note-to-self/prototype-striptags/</link>
		<comments>http://www.westworld.be/a-note-to-self/prototype-striptags/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 10:38:24 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[a note to self]]></category>
		<category><![CDATA[Prototypejs]]></category>
		<category><![CDATA[striptags()]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=12</guid>
		<description><![CDATA[Prototype's striptags() function explained.<p class="read-more"><a href="http://www.westworld.be/a-note-to-self/prototype-striptags/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.westworld.be/a-note-to-self/prototype-striptags/" title="Prototype stripTags "></a><p>Prototype&#8217;s stripTags function needs a string as input. If you want to access a dom node with this function, you need to acces the innerHTML, else the input won&#8217;t match.</p>
<p>expl.</p>
<p>alert($(&#8216;mydiv&#8217;).stripTags(); -&gt; <span style="color: #ff6600;">wont work<br />
<span style="color: #000000;">use</span></span></p>
<p>alert($(&#8216;mydiv&#8217;).innerHTML.stripTags();</p>
<h4>Related Blogs</h4>
<ul class="pc_pingback">
<li class="hdl" style="list-style: none">Related Blogs on <strong>Prototypejs</strong></li>
</ul>
<ul class="pc_pingback">
<li class="hdl" style="list-style: none">Related Blogs on <strong>striptags()</strong></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/a-note-to-self/prototype-striptags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copy to clipboard with Prototype</title>
		<link>http://www.westworld.be/a-note-to-self/copy-to-clipboard-with-prototype/</link>
		<comments>http://www.westworld.be/a-note-to-self/copy-to-clipboard-with-prototype/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 13:01:00 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[a note to self]]></category>
		<category><![CDATA[clipboard]]></category>
		<category><![CDATA[Prototypejs]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=3</guid>
		<description><![CDATA[How to copy data to the clipboard with Prototype<p class="read-more"><a href="http://www.westworld.be/a-note-to-self/copy-to-clipboard-with-prototype/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.westworld.be/a-note-to-self/copy-to-clipboard-with-prototype/" title="Copy to clipboard with Prototype"></a><p>Joe Gornick wrote a Prototype extension that lets users copy data to the clipboard.<br />
The code uses javascript in Internet Explorer and some flash for other browsers.<br />
Check it out at <a href="http://joegornick.com/2007/10/29/extending-prototype-copy-to-clipboard/">Joe Gornick&#8217;s site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/a-note-to-self/copy-to-clipboard-with-prototype/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prototype css selectors and observe</title>
		<link>http://www.westworld.be/a-note-to-self/prototype-css-selectors-and-observe/</link>
		<comments>http://www.westworld.be/a-note-to-self/prototype-css-selectors-and-observe/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 12:02:49 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[a note to self]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Prototypejs]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=8</guid>
		<description><![CDATA[<a href="http://www.westworld.be/a-note-to-self/prototype-css-selectors-and-observe/" title="Prototype css selectors and observe"></a>When using $$ in Prototype, the result is an array. You need to loop through the array to attach the observe function. Expl. $$(&#8216;.myitems&#8216;).each(function(item) { item.observe(&#8216;click&#8217;,function(){alert (&#8216;clicked&#8217;)});}); or $$(&#8216;.myitems&#8217;).invoke(&#8216;observe&#8217;, &#8216;click&#8217;, function() {alert(&#8216;clicked&#8217;)});]]></description>
			<content:encoded><![CDATA[<a href="http://www.westworld.be/a-note-to-self/prototype-css-selectors-and-observe/" title="Prototype css selectors and observe"></a><p>When using $$ in Prototype, the result is an array. You need to loop through the array to attach the observe function.  Expl.<br />
$$<span class="brackets">(&#8216;.myitems</span><span class="brackets">&#8216;)</span>.each<span class="brackets">(</span><span class="keywords">function</span><span class="brackets">(</span>item<span class="brackets">)</span> { item.observe(&#8216;click&#8217;,function(){alert (&#8216;clicked&#8217;)});});</p>
<p>or</p>
<p>$$(&#8216;.myitems&#8217;).invoke(&#8216;observe&#8217;, &#8216;click&#8217;, function() {alert(&#8216;clicked&#8217;)});</p>
]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/a-note-to-self/prototype-css-selectors-and-observe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fire events with Prototype</title>
		<link>http://www.westworld.be/a-note-to-self/fire-events-with-prototype/</link>
		<comments>http://www.westworld.be/a-note-to-self/fire-events-with-prototype/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 12:01:48 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[a note to self]]></category>
		<category><![CDATA[Fire()]]></category>
		<category><![CDATA[Prototypejs]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=5</guid>
		<description><![CDATA[<a href="http://www.westworld.be/a-note-to-self/fire-events-with-prototype/" title="Fire events with Prototype"></a>It&#8217;s not possible to fire the default events with Prototype 1.6. Only custom events are supported. $(&#8216;mybutton&#8217;).observe(&#8216;click&#8217;,function(){&#8230;}); $(&#8216;mybutton&#8217;).fire(&#8216;click&#8217;); will not work $(&#8216;myinput&#8217;).observe(&#8216;input:changed&#8217;,function(){&#8230;.}); $(&#8216;myinput&#8217;).fire(&#8216;input:changed&#8217;); does work]]></description>
			<content:encoded><![CDATA[<a href="http://www.westworld.be/a-note-to-self/fire-events-with-prototype/" title="Fire events with Prototype"></a><p>It&#8217;s not possible to fire the default events with Prototype 1.6. Only custom events are supported.</p>
<p>$(&#8216;mybutton&#8217;).observe(&#8216;click&#8217;,function(){&#8230;});<br />
$(&#8216;mybutton&#8217;).fire(&#8216;click&#8217;); will not work</p>
<p>$(&#8216;myinput&#8217;).observe(&#8216;input:changed&#8217;,function(){&#8230;.});<br />
$(&#8216;myinput&#8217;).fire(&#8216;input:changed&#8217;); does work</p>
]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/a-note-to-self/fire-events-with-prototype/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checkboxes in Prototype</title>
		<link>http://www.westworld.be/a-note-to-self/checkboxes-in-prototype/</link>
		<comments>http://www.westworld.be/a-note-to-self/checkboxes-in-prototype/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 12:01:15 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[a note to self]]></category>
		<category><![CDATA[checkbox]]></category>
		<category><![CDATA[Prototypejs]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=4</guid>
		<description><![CDATA[<a href="http://www.westworld.be/a-note-to-self/checkboxes-in-prototype/" title="Checkboxes in Prototype"></a>observing: $(&#8216;mycheckbox&#8217;).observe(&#8216;click&#8217;, function(e){alert(&#8216;checked = &#8216; + this.checked);}); setting throught scripting: $(&#8216;mycheckbox&#8217;).checked = true; $(&#8216;mycheckbox&#8217;).setAttribute(&#8216;checked&#8217;, true); $(&#8216;mycheckbox&#8217;).setValue(&#8221;); // will un-check/null value $(&#8216;mycheckbox&#8217;).setValue(&#8216;anything&#8217;); // will check/on value $(&#8216;mycheckbox&#8217;).click(); // will toggle the checkbox]]></description>
			<content:encoded><![CDATA[<a href="http://www.westworld.be/a-note-to-self/checkboxes-in-prototype/" title="Checkboxes in Prototype"></a><p><strong>observing:</strong><br />
$(&#8216;mycheckbox&#8217;).observe(&#8216;click&#8217;, function(e){alert(&#8216;checked = &#8216; + this.checked);});</p>
<p><strong>setting throught scripting:</strong><br />
$(&#8216;mycheckbox&#8217;).checked = true;<br />
$(&#8216;mycheckbox&#8217;).setAttribute(&#8216;checked&#8217;, true);<br />
$(&#8216;mycheckbox&#8217;).setValue(&#8221;); // will un-check/null value<br />
$(&#8216;mycheckbox&#8217;).setValue(&#8216;anything&#8217;); // will check/on value<br />
$(&#8216;mycheckbox&#8217;).click(); // will toggle the checkbox</p>
]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/a-note-to-self/checkboxes-in-prototype/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: www.westworld.be @ 2012-02-06 08:15:03 -->
