<?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>Blizzo :: The Morgan Blog &#187; Uncategorized</title>
	<atom:link href="http://www.blizzo.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blizzo.com</link>
	<description>Randomness for you since 1976</description>
	<lastBuildDate>Mon, 29 Nov 2010 18:49:10 +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>ThisDangHouse.org</title>
		<link>http://www.blizzo.com/thisdanghouse-org/</link>
		<comments>http://www.blizzo.com/thisdanghouse-org/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 04:24:32 +0000</pubDate>
		<dc:creator>F. Morgan Whitney</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.blizzo.com/?p=293</guid>
		<description><![CDATA[Just a quick note to let people know I have started a new blog to follow the progress of my massive home remodel.  Join me on my adventure at This Dang House!]]></description>
			<content:encoded><![CDATA[<p>Just a quick note to let people know I have started a new blog to follow the progress of my massive home remodel.  Join me on my adventure at <a href="http://thisdanghouse.org">This Dang House!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blizzo.com/thisdanghouse-org/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prototype Hack: Toggle Display Default</title>
		<link>http://www.blizzo.com/prototype-hack-toggle-display-default/</link>
		<comments>http://www.blizzo.com/prototype-hack-toggle-display-default/#comments</comments>
		<pubDate>Tue, 12 Sep 2006 15:07:01 +0000</pubDate>
		<dc:creator>F. Morgan Whitney</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.blizzo.com/?p=26</guid>
		<description><![CDATA[I am primarily a Ruby on Rails developer now, but even before that I had began to leverage Prototype into my PHP applications to make UI design easier. One of the things that bugs me about the Prototype library is that if you load an element with the default CSS ‘display’ value of ‘none’, you [...]]]></description>
			<content:encoded><![CDATA[<p>I am primarily a Ruby on Rails developer now, but even before that I had began to leverage Prototype into my PHP applications to make UI design easier. One of the things that bugs me about the Prototype library is that if you load an element with the default CSS ‘display’ value of ‘none’, you have to use the hide/show functions to toggle it’s display. That means finding some way to conditionally determine the state and choose which function to call. Who has time for that? Not me, enter my little addition to Protype toggleDisplay:</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Blue;">toggleDisplay</span><span style="color: Gray;">: </span><span style="color: Green;">function</span><span style="color: Olive;">()</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Green;">for</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: Green;">var</span><span style="color: Gray;"> </span><span style="color: Blue;">i</span><span style="color: Gray;"> = </span><span style="color: Maroon;">0</span><span style="color: Gray;">; </span><span style="color: Blue;">i</span><span style="color: Gray;"> &lt; </span><span style="color: Blue;">arguments</span><span style="color: Gray;">.</span><span style="color: Blue;">length</span><span style="color: Gray;">; </span><span style="color: Blue;">i</span><span style="color: Gray;">++</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">var</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">element</span><span style="color: Gray;"> = $</span><span style="color: Olive;">(</span><span style="color: Blue;">arguments</span><span style="color: Olive;">[</span><span style="color: Blue;">i</span><span style="color: Olive;">])</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">element</span><span style="color: Gray;">.</span><span style="color: Blue;">style</span><span style="color: Gray;">.</span><span style="color: Blue;">display</span><span style="color: Gray;"> = </span><span style="color: Olive;">(</span><span style="color: Blue;">element</span><span style="color: Gray;">.</span><span style="color: Blue;">style</span><span style="color: Gray;">.</span><span style="color: Blue;">display</span><span style="color: Gray;"> != </span><span style="color: #8b0000;">'</span><span style="color: Red;">none</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;"> ? </span><span style="color: #8b0000;">'</span><span style="color: Red;">none</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> : </span><span style="color: #8b0000;">'</span><span style="color: Red;">block</span><span style="color: #8b0000;">'</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">}</span></li>
<li><span style="color: Olive;">}</span><span style="color: Gray;">,</span></li></ol></div>
<p>I entered this code in directly between “toggle:” and “hide:” in “Object.extend”, around line 860. This was done in Prototype version 1.4.0.</p>
<p>Man, I need a better code highlighting formatting widget thingy. I guess I should upgrade this old and busted installation of WordPress to Version 2. I’ll do that now!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blizzo.com/prototype-hack-toggle-display-default/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

