<?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>Brilla.org &#187; frames</title>
	<atom:link href="http://brilla.org/archives/tag/frames/feed" rel="self" type="application/rss+xml" />
	<link>http://brilla.org</link>
	<description>Too Much Rage</description>
	<lastBuildDate>Wed, 20 Jan 2010 23:27:40 +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>An IE6 bug dissected: iFrames, IE7.js, and more dumb things Microsoft</title>
		<link>http://brilla.org/archives/2010/01/an-ie6-bug-dissected-iframes-ie7-js-and-more-dumb-things-microsoft</link>
		<comments>http://brilla.org/archives/2010/01/an-ie6-bug-dissected-iframes-ie7-js-and-more-dumb-things-microsoft#comments</comments>
		<pubDate>Wed, 20 Jan 2010 23:27:40 +0000</pubDate>
		<dc:creator>Jon</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[2004 bugs]]></category>
		<category><![CDATA[cancerous software]]></category>
		<category><![CDATA[frames]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[ie7.js]]></category>
		<category><![CDATA[iframe]]></category>

		<guid isPermaLink="false">http://brilla.org/?p=110</guid>
		<description><![CDATA[We don&#8217;t do markup or CSS. We take the code you give us and chop it up with some XSLT, so that it wraps on top of our XML-based content management system beautifully. (If you are still tuning in then you&#8217;re definitely a web developer on the hunt for a bug fix&#8230; keep reading) There&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ingeniux.com">We</a> don&#8217;t do markup or CSS. We take the code you give us and chop it up with some XSLT, so that it wraps on top of our XML-based content management system beautifully. (If you are still tuning in then you&#8217;re definitely a web developer on the hunt for a bug fix&#8230; keep reading)</p>
<p>There&#8217;s the IE6 problem. It renders everything that<strong> should</strong> be beautiful to look like absolute ass. Thankfully, that ain&#8217;t our problem.</p>
<p>But, for times when it <strong>is</strong> your problem, <a title="Dean Edwards" href="http://dean.edwards.name/">someone smarter than me</a> came up with <a title="ie7-js on Google Code" href="http://code.google.com/p/ie7-js/">a brilliant solution to this</a>. IE7.js a workaround to get IE6 to play nicely like it should. Just drop it in and it does the rest. Done and done.</p>
<p>Recently a client delivered some XHTML/CSS making use of IE7.js. Done and done; set it and forget it.</p>
<p>So we did. Nobody actually checked out their finished site in IE6 — frankly, because no one with a right mind actually uses that browser.</p>
<p>But, the client&#8217;s clients do. They started getting emails that everything was ugly in that awful broken old excuse for a browser.</p>
<p>Henceforth, the IE6 problem became <span style="text-decoration: underline;">my</span> problem.</p>
<p>So what changed? Assuming we kept all that intact in the process (we did), why then, would a demo page with bogus content look fine, but once it&#8217;s filled out with living, breathing pages and news stories, does everything blow up?</p>
<p>JavaScript error. Hm: <em> &#8216;v&#8217; is null or not an object.</em></p>
<p><a href="http://brilla.org/wordpress/wp-content/uploads/2010/01/v_is_null.jpg"><img class="alignnone size-full wp-image-111" title="v_is_null" src="http://brilla.org/wordpress/wp-content/uploads/2010/01/v_is_null.jpg" alt="v is null or not an object" width="437" height="290" /></a></p>
<p>A little Googling reveals <a title="IE7.js and iframes Options" href="http://groups.google.com/group/ie7-js/browse_thread/thread/ee0445214469d567">a possible culprit</a>. Apparently, IE7.js starts acting up when frames are involved. Our CMS solution does make unabashed use of iframes.</p>
<p>So, I make the code changes mentioned in that message. Save, dump cache, and hit F5. A new error message appears:</p>
<p><em>Internet Explorer cannot open the Internet site http://&#8230;</em></p>
<p><em>Operation aborted.<br />
</em></p>
<p><a href="http://brilla.org/wordpress/wp-content/uploads/2010/01/operation_aborted1.jpg"><img class="alignnone size-full wp-image-113" title="Operation Aborted" src="http://brilla.org/wordpress/wp-content/uploads/2010/01/operation_aborted1.jpg" alt="Internet Explorer cannot open the Internet site ... / Operation aborted" width="473" height="133" /></a></p>
<p>Seriously? After that, my web page defaults to a yucky <strong>The page cannot be displayed</strong> screen. Ick.</p>
<p>More Googling and I find myself skeptically glossing over <a title="What Happened to Operation Aborted?" href="http://blogs.msdn.com/ie/archive/2008/04/23/what-happened-to-operation-aborted.aspx">a page on MSDN</a>. And there she is:</p>
<h3>2. Adding the <a href="http://www.w3.org/TR/REC-html40/interact/scripts.html#adef-defer">defer</a> boolean attribute to the script block (this defers execution of the script content until parsing is complete)</h3>
<p>I&#8217;d heard of this &#8216;defer&#8217; thing before. It&#8217;s a stupid IE-only attribute that instructs the browser to not load the script until the page is done rendering. Think of it as one big $(document).ready().</p>
<p>So I add &#8221; defer&#8221; to my opening &lt;script&gt; tag. Error messages gone. Blank screens gone. Page is no longer looking yucko in IE6, it renders like it should. Everything just works™.</p>
<h2>In conclusion (<acronym title="Too Long, Didn't Read">TL, DR</acronym>)</h2>
<p>If your IE7.js is acting a fool on you, put <code>defer</code> to work:</p>
<pre><code>&lt;!--[if lt IE 7]&gt;
&lt;script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js" type="text/javascript" <strong>defer="defer"</strong>&gt;&lt;/script&gt;
&lt;![endif]--&gt;</code></pre>
<p>Set it, and forget it.</p>
]]></content:encoded>
			<wfw:commentRss>http://brilla.org/archives/2010/01/an-ie6-bug-dissected-iframes-ie7-js-and-more-dumb-things-microsoft/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
