<?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>Schadenfreude &#187; web programming</title>
	<atom:link href="http://www.ralree.com/tag/web-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ralree.com</link>
	<description>Malicious enjoyment derived from observing someone else's misfortune</description>
	<lastBuildDate>Thu, 09 Feb 2012 01:49:15 +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>Fun with browser error pages</title>
		<link>http://www.ralree.com/2007/10/26/fun-with-browser-error-pages/</link>
		<comments>http://www.ralree.com/2007/10/26/fun-with-browser-error-pages/#comments</comments>
		<pubDate>Fri, 26 Oct 2007 00:30:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web programming]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/26/fun-with-browser-error-pages</guid>
		<description><![CDATA[So, I though it would be interesting to mimic browser behavior with error pages. I decided I needed to make a page that looked exactly like the Firefox Server-not-found page. I managed to copy the source using Firebug, and I extracted the css out of the jar files on my system. Anyway, I ended up with some source for IE and some source for Firefox. Test this in IE and Firefox I left little invisible links in each one (search [...]]]></description>
			<content:encoded><![CDATA[<p>So, I though it would be interesting to mimic browser behavior with error pages.  I decided I needed to make a page that looked exactly like the Firefox Server-not-found page.  I managed to copy the source using <a href="http://addons.mozilla.org/firefox/1843">Firebug</a>, and I extracted the css out of the <strong>jar</strong> files on my system.  Anyway, I ended up with <a href="http://www.ralree.info/error/errortest-ie.html.txt">some source for IE</a> and <a href="http://www.ralree.info/error/errortest-ff.html.txt">some source for Firefox</a>.</p>
<h2><a href="http://www.ralree.info/error">Test this in IE and Firefox</a></h2>
<p>I left little invisible links in each one (search for &#8216;Supplies&#8217; on the page).  I also removed all the default javascript from the Firefox version and replaced the Try Again action with a simple reload one-liner.</p>
<p>Then, I just wrote some awesome PHP to take care of which one to load, and called it index.php:</p>
<pre><code>
&lt;?php
if (preg_match('/MSIE/i', $_SERVER['HTTP_USER_AGENT'])) {
  readfile("errortest-ie.html");
} else {
  readfile("errortest-ff.html");
}
?&gt;
</code></pre>
<p>And we&#8217;re done.  Not bad, eh?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/10/26/fun-with-browser-error-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

