<?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>Cameron Priem &#187; JavaScript</title>
	<atom:link href="http://cameronpriem.com/category/code/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://cameronpriem.com</link>
	<description>Professional Software Development</description>
	<lastBuildDate>Tue, 11 Aug 2009 12:12:06 +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>IE 6 on windows 2000 hangs on ajax</title>
		<link>http://cameronpriem.com/2009/08/ie-6-on-windows-2000-hangs-on-ajax/</link>
		<comments>http://cameronpriem.com/2009/08/ie-6-on-windows-2000-hangs-on-ajax/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 12:12:06 +0000</pubDate>
		<dc:creator>Campo</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://cameronpriem.com/?p=60</guid>
		<description><![CDATA[This problem took me a few days to sort out.  We just started using Ajax in our application and everything was running fine, loading fast and being totally awesome (because its Ajax , and I heart Ajax).  I couldn&#8217;t figure it out, every browser and every O/S this was working fine, there was just one customer using IE6 [...]]]></description>
			<content:encoded><![CDATA[<p>This problem took me a few days to sort out.  We just started using Ajax in our application and everything was running fine, loading fast and being totally awesome (because its Ajax , and I heart Ajax).  I couldn&#8217;t figure it out, every browser and every O/S this was working fine, there was just one customer using IE6 with windows 2000.  The problem was the Ajax call was hanging, for a really long time.  At first I thought the Ajax wasn&#8217;t firing at all, but with out live http headers for IE6, there wasn&#8217;t any way I could confirm this.</p>
<p>So after about 5 minutes of sitting there pulling my hair out&#8230;..the ajax returned a result and the next part of the process ran.   Sooo&#8230;.what the hell?!?!  A few days of googling, trying different things, asking other people in the development team, and finally praying (all religions), I came across a blog post that explained that IE6 doesn&#8217;t handle closed connections very well.  We had this line in our javascript:</p>
<p><em>xh.setRequestHeader(&#8220;Connection&#8221;, &#8220;close&#8221;);</em></p>
<p>We now had to change our code to only include this if the browser was not IE6.  I wasn&#8217;t sure what performance hit this would have or what side affects it would have, but we&#8217;ve been running this for a few years and haven&#8217;t seen any difference with performance or had any problems.  If anyone else has a better understanding of why IE6 behaves like this, please leave me a comment!!</p>
]]></content:encoded>
			<wfw:commentRss>http://cameronpriem.com/2009/08/ie-6-on-windows-2000-hangs-on-ajax/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
