<?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>Mon, 14 Jun 2010 18:12:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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


Related posts:<ol><li><a href='http://www.westworld.be/a-note-to-self/prototype-submit-multiple-select-with-ajax-call/' rel='bookmark' title='Permanent Link: Prototype: submit multiple select with ajax call'>Prototype: submit multiple select with ajax call</a></li></ol>]]></description>
			<content:encoded><![CDATA[<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>


<p>Related posts:<ol><li><a href='http://www.westworld.be/a-note-to-self/prototype-submit-multiple-select-with-ajax-call/' rel='bookmark' title='Permanent Link: Prototype: submit multiple select with ajax call'>Prototype: submit multiple select with ajax call</a></li></ol></p>]]></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.


Related posts:<ol><li><a href='http://www.westworld.be/a-note-to-self/prototype-submit-multiple-select-with-ajax-call/' rel='bookmark' title='Permanent Link: Prototype: submit multiple select with ajax call'>Prototype: submit multiple select with ajax call</a></li><li><a href='http://www.westworld.be/uncategorized/pdo-get-column-names/' rel='bookmark' title='Permanent Link: Pdo get column names'>Pdo get column names</a></li><li><a href='http://www.westworld.be/a-note-to-self/__autoload-function/' rel='bookmark' title='Permanent Link: __autoload function'>__autoload function</a></li></ol>]]></description>
			<content:encoded><![CDATA[<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($(&#8217;mydiv&#8217;).stripTags(); -&gt; <span style="color: #ff6600;">wont work<br />
<span style="color: #000000;">use</span></span></p>
<p>alert($(&#8217;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>


<p>Related posts:<ol><li><a href='http://www.westworld.be/a-note-to-self/prototype-submit-multiple-select-with-ajax-call/' rel='bookmark' title='Permanent Link: Prototype: submit multiple select with ajax call'>Prototype: submit multiple select with ajax call</a></li><li><a href='http://www.westworld.be/uncategorized/pdo-get-column-names/' rel='bookmark' title='Permanent Link: Pdo get column names'>Pdo get column names</a></li><li><a href='http://www.westworld.be/a-note-to-self/__autoload-function/' rel='bookmark' title='Permanent Link: __autoload function'>__autoload function</a></li></ol></p>]]></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


Related posts:<ol><li><a href='http://www.westworld.be/a-note-to-self/prototype-submit-multiple-select-with-ajax-call/' rel='bookmark' title='Permanent Link: Prototype: submit multiple select with ajax call'>Prototype: submit multiple select with ajax call</a></li></ol>]]></description>
			<content:encoded><![CDATA[<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>


<p>Related posts:<ol><li><a href='http://www.westworld.be/a-note-to-self/prototype-submit-multiple-select-with-ajax-call/' rel='bookmark' title='Permanent Link: Prototype: submit multiple select with ajax call'>Prototype: submit multiple select with ajax call</a></li></ol></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[When using $$ in Prototype, the result is an array. You need to loop through the array to attach the observe function.  Expl.
$$(&#8217;.myitems&#8216;).each(function(item) { item.observe(&#8217;click&#8217;,function(){alert (&#8217;clicked&#8217;)});});
or
$$(&#8217;.myitems&#8217;).invoke(&#8217;observe&#8217;, &#8216;click&#8217;, function() {alert(&#8217;clicked&#8217;)});


Related posts:Prototype: submit multiple select with ajax call


Related posts:<ol><li><a href='http://www.westworld.be/a-note-to-self/prototype-submit-multiple-select-with-ajax-call/' rel='bookmark' title='Permanent Link: Prototype: submit multiple select with ajax call'>Prototype: submit multiple select with ajax call</a></li></ol>]]></description>
			<content:encoded><![CDATA[<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">(&#8217;.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(&#8217;click&#8217;,function(){alert (&#8217;clicked&#8217;)});});</p>
<p>or</p>
<p>$$(&#8217;.myitems&#8217;).invoke(&#8217;observe&#8217;, &#8216;click&#8217;, function() {alert(&#8217;clicked&#8217;)});</p>


<p>Related posts:<ol><li><a href='http://www.westworld.be/a-note-to-self/prototype-submit-multiple-select-with-ajax-call/' rel='bookmark' title='Permanent Link: Prototype: submit multiple select with ajax call'>Prototype: submit multiple select with ajax call</a></li></ol></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[It&#8217;s not possible to fire the default events with Prototype 1.6. Only custom events are supported.
$(&#8217;mybutton&#8217;).observe(&#8217;click&#8217;,function(){&#8230;});
$(&#8217;mybutton&#8217;).fire(&#8217;click&#8217;); will not work
$(&#8217;myinput&#8217;).observe(&#8217;input:changed&#8217;,function(){&#8230;.});
$(&#8217;myinput&#8217;).fire(&#8217;input:changed&#8217;); does work


Related posts:Prototype: submit multiple select with ajax call__autoload function


Related posts:<ol><li><a href='http://www.westworld.be/a-note-to-self/prototype-submit-multiple-select-with-ajax-call/' rel='bookmark' title='Permanent Link: Prototype: submit multiple select with ajax call'>Prototype: submit multiple select with ajax call</a></li><li><a href='http://www.westworld.be/a-note-to-self/__autoload-function/' rel='bookmark' title='Permanent Link: __autoload function'>__autoload function</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s not possible to fire the default events with Prototype 1.6. Only custom events are supported.</p>
<p>$(&#8217;mybutton&#8217;).observe(&#8217;click&#8217;,function(){&#8230;});<br />
$(&#8217;mybutton&#8217;).fire(&#8217;click&#8217;); will not work</p>
<p>$(&#8217;myinput&#8217;).observe(&#8217;input:changed&#8217;,function(){&#8230;.});<br />
$(&#8217;myinput&#8217;).fire(&#8217;input:changed&#8217;); does work</p>


<p>Related posts:<ol><li><a href='http://www.westworld.be/a-note-to-self/prototype-submit-multiple-select-with-ajax-call/' rel='bookmark' title='Permanent Link: Prototype: submit multiple select with ajax call'>Prototype: submit multiple select with ajax call</a></li><li><a href='http://www.westworld.be/a-note-to-self/__autoload-function/' rel='bookmark' title='Permanent Link: __autoload function'>__autoload function</a></li></ol></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[observing:
$(&#8217;mycheckbox&#8217;).observe(&#8217;click&#8217;, function(e){alert(&#8217;checked = &#8216; + this.checked);});
setting throught scripting:
$(&#8217;mycheckbox&#8217;).checked = true;
$(&#8217;mycheckbox&#8217;).setAttribute(&#8217;checked&#8217;, true);
$(&#8217;mycheckbox&#8217;).setValue(&#8221;); // will un-check/null value
$(&#8217;mycheckbox&#8217;).setValue(&#8217;anything&#8217;); // will check/on value
$(&#8217;mycheckbox&#8217;).click(); // will toggle the checkbox


Related posts:Prototype: submit multiple select with ajax call


Related posts:<ol><li><a href='http://www.westworld.be/a-note-to-self/prototype-submit-multiple-select-with-ajax-call/' rel='bookmark' title='Permanent Link: Prototype: submit multiple select with ajax call'>Prototype: submit multiple select with ajax call</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p><strong>observing:</strong><br />
$(&#8217;mycheckbox&#8217;).observe(&#8217;click&#8217;, function(e){alert(&#8217;checked = &#8216; + this.checked);});</p>
<p><strong>setting throught scripting:</strong><br />
$(&#8217;mycheckbox&#8217;).checked = true;<br />
$(&#8217;mycheckbox&#8217;).setAttribute(&#8217;checked&#8217;, true);<br />
$(&#8217;mycheckbox&#8217;).setValue(&#8221;); // will un-check/null value<br />
$(&#8217;mycheckbox&#8217;).setValue(&#8217;anything&#8217;); // will check/on value<br />
$(&#8217;mycheckbox&#8217;).click(); // will toggle the checkbox</p>


<p>Related posts:<ol><li><a href='http://www.westworld.be/a-note-to-self/prototype-submit-multiple-select-with-ajax-call/' rel='bookmark' title='Permanent Link: Prototype: submit multiple select with ajax call'>Prototype: submit multiple select with ajax call</a></li></ol></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>
