<?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>Promises of Progress &#187; javascript</title>
	<atom:link href="http://casper.warming.com/blog/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://casper.warming.com/blog</link>
	<description>Wits - or GTFO</description>
	<lastBuildDate>Wed, 19 May 2010 11:58:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Random selection</title>
		<link>http://casper.warming.com/blog/2009/01/14/random-selection/</link>
		<comments>http://casper.warming.com/blog/2009/01/14/random-selection/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 11:13:58 +0000</pubDate>
		<dc:creator>casper</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[multiple-choice]]></category>
		<category><![CDATA[populate]]></category>
		<category><![CDATA[radio]]></category>

		<guid isPermaLink="false">http://casper.warming.com/blog/?p=114</guid>
		<description><![CDATA[Having to complete an online multiple-choice personality test in a hurry, I quickly threw together a piece of javascript, that selects random radio buttons on any page. If you are in a similar hurry, feel free to bookmark it &#8211; and use it on a page with plenty of radio buttons. randomradio! Enjoy. And now [...]]]></description>
			<content:encoded><![CDATA[<p>Having to complete an online multiple-choice personality test in a hurry, I quickly threw together a piece of javascript, that selects random radio buttons on any page.<br />
If you are in a similar hurry, feel free to bookmark it &#8211; and use it on a page with plenty of radio buttons.</p>
<p><a href="javascript:function rr(o) { var e = new Object(); for (var n = 0; n &lt; o.length; n++) { if (o[n].type === 'radio') { o[n].checked = false; if (e[o[n].name]) { continue; } e[o[n].name] = document.getElementsByName(o[n].name); }} for (k in e) { var s = e[k]; s[Math.floor(Math.random() * s.length)].checked = true; }} rr(document.getElementsByTagName('input'));">randomradio!</a></p>
<p>Enjoy.</p>
<p>And now I look forward to hearing about the personality profile of the javascript random().</p>
]]></content:encoded>
			<wfw:commentRss>http://casper.warming.com/blog/2009/01/14/random-selection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
