<?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>CSSquirrel &#187; ie</title>
	<atom:link href="http://www.cssquirrel.com/tag/ie/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cssquirrel.com</link>
	<description>One nut's look at the world of web design</description>
	<lastBuildDate>Tue, 27 Jul 2010 19:28:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jQuery, JSON and IE &#8211; Getting Incorrect Array Length</title>
		<link>http://www.cssquirrel.com/2008/10/14/jquery-json-and-ie-getting-incorrect-array-length/</link>
		<comments>http://www.cssquirrel.com/2008/10/14/jquery-json-and-ie-getting-incorrect-array-length/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 20:24:58 +0000</pubDate>
		<dc:creator>Kyle Weems</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[json]]></category>

		<guid isPermaLink="false">http://www.cssquirrel.com/?p=106</guid>
		<description><![CDATA[Has anyone had the following problem? When loading a JSON array (through something like $.getJSON), Internet Explorer will sometimes report the length of the array being one higher than other browsers, with the extra element in the array being blank.
I don&#8217;t know if this is a problem in other libraries, but I suspect it is. [...]]]></description>
			<content:encoded><![CDATA[<p>Has anyone had the following problem? When loading a <a title="Link to JSON.org" href="http://www.json.org/" target="_self">JSON</a> array (through something like <a title="Link to jQuery documentation on jQuery.getJSON" href="http://docs.jquery.com/Ajax/jQuery.getJSON#urldatacallback" target="_blank">$.getJSON</a>), Internet Explorer will sometimes report the length of the array being one higher than other browsers, with the extra element in the array being blank.</p>
<p>I don&#8217;t know if this is a problem in other libraries, but I suspect it is. But I do know that it&#8217;s happened to me when using jQuery&#8217;s Ajax functions.</p>
<p>Why is this occurring?</p>
<p>I was tormenting myself with this same question on a client project, and discovered that although a bit of browser quirkiness was involved, it was actually an error on my part.</p>
<p>I hate it when it&#8217;s me. <img src='http://www.cssquirrel.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><span id="more-106"></span></p>
<p>As it turns out, I had an extra trailing comma at the end of the last element in my array. For example, in the following array:</p>
<p><strong>{&#8220;gamesImDroolingFor&#8221;:[{"developer":"Blizzard","title:"Diablo III"},{"developer":"Square Enix","title":"Final Fantasy XIII"}<span style="color: #ff0000;">,</span>]}</strong></p>
<p>You&#8217;ll notice that there&#8217;s a comma after the last game&#8217;s bracket (which has been turned red for emphasis).</p>
<p>Firefox will ignore that comma, since clearly there&#8217;s no new object after it. Internet Explorer, the special child of the web, isn&#8217;t quite so bright, so it adds an extra, blank element to the array it creates.</p>
<p>Go IE.</p>
<p>The solution is easy, of course. Remove the unneeded comma.</p>
<p>I hope this helps prevent other developers from driving themselves batty trying to figure out what&#8217;s going wrong with their own arrays.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssquirrel.com/2008/10/14/jquery-json-and-ie-getting-incorrect-array-length/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Comic Update: The Passion of the Dean</title>
		<link>http://www.cssquirrel.com/2008/05/12/comic-update-the-passion-of-the-dean/</link>
		<comments>http://www.cssquirrel.com/2008/05/12/comic-update-the-passion-of-the-dean/#comments</comments>
		<pubDate>Tue, 13 May 2008 07:10:57 +0000</pubDate>
		<dc:creator>Kyle Weems</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Comic]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://www.cssquirrel.com/?p=24</guid>
		<description><![CDATA[With Internet Explorer, there seems to be only two opinions: people love it or hate it.
When it comes to web developers, it seems to be pretty much hate. Granted, I&#8217;m on that page, as I&#8217;ve spent more than a few hours of a client&#8217;s budget trying to get IE7 (let alone IE6) render a site [...]]]></description>
			<content:encoded><![CDATA[<p>With Internet Explorer, there seems to be only two opinions: people love it or hate it.</p>
<p>When it comes to web developers, it seems to be pretty much hate. Granted, I&#8217;m on that page, as I&#8217;ve spent more than a few hours of a client&#8217;s budget trying to get IE7 (let alone IE6) render a site properly. Or even close to properly. I&#8217;d say almost half of my posts so far at my <a title="Kyle's blog at Mindfly" href="http://www.mindfly.com/kyle" target="_blank">Mindfly blog</a> are a testament to this fact.</p>
<p>But there is a point where people get rabid. I explore that theme in this week&#8217;s <a title="Link to Comic #2 - The Passion of the Dean" href="http://www.cssquirrel.com/comic/?comic=2" target="_blank">comic</a>.</p>
<p>I understand that crucifying <a title="Link to Dean Hachamovitch article" href="http://www.netmag.co.uk/zine/discover-interview/dean-hachamovitch" target="_blank">Dean Hachamovitch</a> (the dev team&#8217;s general manager and author of this heavily hated/loved <a title="Link to IEBlog entry" href="http://blogs.msdn.com/ie/archive/2008/03/03/microsoft-s-interoperability-principles-and-ie8.aspx" target="_blank">IEBlog entry</a> &#8211; and no, I can&#8217;t pronounce it) might be going a bit too far. For that matter, displaying <a title="Link to Zeldman's blog" href="http://www.zeldman.com/" target="_blank">Jeffrey Zeldman</a> in a Pontius Pilate role might be taking metaphors to excess. But I can&#8217;t help but feel that when it comes to browsers, we&#8217;re so full of rhetoric that any actual message, be it pro or con, usually gets lost in the rabid barking. Ultimately, they&#8217;re not evil zealots, nor saints. They&#8217;re just guys making code. It just happens to be code for the most widely used browser on the web&#8230; which probably means they need more coffee breaks than most of us to stay calm.</p>
<p>In case it needs to be said, I&#8217;m not encouraging anyone being hung up on a cross. That&#8217;d be bad form.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssquirrel.com/2008/05/12/comic-update-the-passion-of-the-dean/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
