<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: IE 7 - Native xmlHttpRequest Not So Good</title>
	<link>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good</link>
	<description></description>
	<pubDate>Tue, 06 Jan 2009 09:16:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Ralf</title>
		<link>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-82956</link>
		<dc:creator>Ralf</dc:creator>
		<pubDate>Sun, 06 Jul 2008 06:41:18 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-82956</guid>
		<description>I can only agree to use Microsoft.XMLHTTP Active X object in IE7 in favor of XMLhttpRequest object. Have been working on a little instant messenger today and the followin code did not work in IE7 with the XMLhttpRequest:

function refreshIM()
{
   script = 'ajax/im_prog.php';
   querystring = 'a=refresh&#38;refuid=' + im_refuid;
   sendHTTPRequest2(script, querystring, 'get', refreshIM_callback);
   setTimeout("refreshIM()", (im_refresh_interval * 1000));
}

the problem was with setTimeout. It simply did not work in IE7 with XMLHttpRequest, only with Microsoft.XMLHTTP.

There are no problems in Firefox 3 and Opera 9.51</description>
		<content:encoded><![CDATA[<p>I can only agree to use Microsoft.XMLHTTP Active X object in IE7 in favor of XMLhttpRequest object. Have been working on a little instant messenger today and the followin code did not work in IE7 with the XMLhttpRequest:</p>
<p>function refreshIM()<br />
{<br />
   script = &#8216;ajax/im_prog.php&#8217;;<br />
   querystring = &#8216;a=refresh&amp;refuid=&#8217; + im_refuid;<br />
   sendHTTPRequest2(script, querystring, &#8216;get&#8217;, refreshIM_callback);<br />
   setTimeout(&#8221;refreshIM()&#8221;, (im_refresh_interval * 1000));<br />
}</p>
<p>the problem was with setTimeout. It simply did not work in IE7 with XMLHttpRequest, only with Microsoft.XMLHTTP.</p>
<p>There are no problems in Firefox 3 and Opera 9.51</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-80761</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Thu, 12 Jun 2008 02:57:14 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-80761</guid>
		<description>Madness....

My Ajax program has been working like a charm in firefox, but in IE7 its dog.... You have just saved me....

I removed the if httpObject is NOT present line like u did.

Champion!</description>
		<content:encoded><![CDATA[<p>Madness&#8230;.</p>
<p>My Ajax program has been working like a charm in firefox, but in IE7 its dog&#8230;. You have just saved me&#8230;.</p>
<p>I removed the if httpObject is NOT present line like u did.</p>
<p>Champion!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-53504</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 27 Dec 2007 07:22:03 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-53504</guid>
		<description>Doesn't it make perfect sense though?  If Microsoft needs to compete with Google to take over IT, then issuing a change that breaks Google's products is an absolutely fantastic way of levelling the field.

JSON for the win.</description>
		<content:encoded><![CDATA[<p>Doesn&#8217;t it make perfect sense though?  If Microsoft needs to compete with Google to take over IT, then issuing a change that breaks Google&#8217;s products is an absolutely fantastic way of levelling the field.</p>
<p>JSON for the win.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: conversationing &#187; Blog Archive &#187; Today is brought to you by the letters AJAX and IE7</title>
		<link>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-35945</link>
		<dc:creator>conversationing &#187; Blog Archive &#187; Today is brought to you by the letters AJAX and IE7</dc:creator>
		<pubDate>Thu, 13 Sep 2007 05:43:35 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-35945</guid>
		<description>[...] are also concerns of it being much slower and buggier than XMLHTTP is. I guess a new implementation is less likely to be optimised, but it apparently has [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] are also concerns of it being much slower and buggier than XMLHTTP is. I guess a new implementation is less likely to be optimised, but it apparently has [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 15 minutes media &#187; The Release of IE7 and what it means for website owners</title>
		<link>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-4244</link>
		<dc:creator>15 minutes media &#187; The Release of IE7 and what it means for website owners</dc:creator>
		<pubDate>Sun, 03 Dec 2006 20:01:55 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-4244</guid>
		<description>[...] AJAX XMLHTTP: The IE Blog says: &#8220;to have your cross-browser AJAX work better with IE7, you really should be invoking the native XMLHttpRequest (the cross-browser one) first to see if itâ€™s available before instantiating the ActiveX control, instead of the other way around.&#8221; Read this guys comments http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] AJAX XMLHTTP: The IE Blog says: &#8220;to have your cross-browser AJAX work better with IE7, you really should be invoking the native XMLHttpRequest (the cross-browser one) first to see if itâ€™s available before instantiating the ActiveX control, instead of the other way around.&#8221; Read this guys comments <a href="http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good" rel="nofollow">http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good</a> [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cobold</title>
		<link>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-4018</link>
		<dc:creator>Cobold</dc:creator>
		<pubDate>Thu, 30 Nov 2006 10:49:49 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-4018</guid>
		<description>Thank you very much, this article saved me hours! Stupid Microsoft and Ie</description>
		<content:encoded><![CDATA[<p>Thank you very much, this article saved me hours! Stupid Microsoft and Ie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony</title>
		<link>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-3248</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Mon, 13 Nov 2006 20:08:03 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-3248</guid>
		<description>This article answered my question and now I am not having any problems.</description>
		<content:encoded><![CDATA[<p>This article answered my question and now I am not having any problems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-2542</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Fri, 27 Oct 2006 15:01:35 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-2542</guid>
		<description>I got the fix for for my application but I suspect this might be a problem for additional ajax frameworks.  It looks like my call back function wasn't executing for every request (again I believe it has to with IE7 not reusing the same javascript object for each request).  I changed to pass the results directly to javascript var object.

OLD javascript code:
&lt;code&gt;
A_Class.Ajax.Search(keyValue,SearchBy, SearchWord_CallBack); 

function SearchWord_CallBack(response) {
    var word = response.value; 
    if(response != null) 
    {
    document.getElementById("Display").style.visibility = "visible"; 
    document.getElementById("Display").innerHTML = word.substring(0,word.length - 4); 
    }
}
&lt;/code&gt;

New Code:
&lt;code&gt;
var word = A_Class.Ajax.Search(keyValue, SearchBy).value;
document.getElementById("Display").style.visibility = "visible"; 
document.getElementById("Display").innerHTML = word.substring(0,word.length - 4); 
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I got the fix for for my application but I suspect this might be a problem for additional ajax frameworks.  It looks like my call back function wasn&#8217;t executing for every request (again I believe it has to with IE7 not reusing the same javascript object for each request).  I changed to pass the results directly to javascript var object.</p>
<p>OLD javascript code:<br />
<code><br />
A_Class.Ajax.Search(keyValue,SearchBy, SearchWord_CallBack); </p>
<p>function SearchWord_CallBack(response) {<br />
    var word = response.value;<br />
    if(response != null)<br />
    {<br />
    document.getElementById("Display").style.visibility = "visible";<br />
    document.getElementById("Display").innerHTML = word.substring(0,word.length - 4);<br />
    }<br />
}<br />
</code></p>
<p>New Code:<br />
<code><br />
var word = A_Class.Ajax.Search(keyValue, SearchBy).value;<br />
document.getElementById("Display").style.visibility = "visible";<br />
document.getElementById("Display").innerHTML = word.substring(0,word.length - 4);<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-2523</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Thu, 26 Oct 2006 19:15:34 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-2523</guid>
		<description>I found this today explaining the difference of the new XmlHttpRequest oject verses the old Microsoft.XMLHTTP object.


http://blogs.missiondata.com/?p=64
His thought is that IE 7 doesn't reuse the javascript for every request, like Microsoft.XMLHTTP does.  This maybe a problem with the ajax framework I am using - Ajax Professional - http://www.ajaxinfo.net.... More to come on this issue.</description>
		<content:encoded><![CDATA[<p>I found this today explaining the difference of the new XmlHttpRequest oject verses the old Microsoft.XMLHTTP object.</p>
<p><a href="http://blogs.missiondata.com/?p=64" rel="nofollow">http://blogs.missiondata.com/?p=64</a><br />
His thought is that IE 7 doesn&#8217;t reuse the javascript for every request, like Microsoft.XMLHTTP does.  This maybe a problem with the ajax framework I am using - Ajax Professional - <a href="http://www.ajaxinfo.net...." rel="nofollow">http://www.ajaxinfo.net&#8230;.</a> More to come on this issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-2496</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Wed, 25 Oct 2006 21:10:24 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/ie-7-native-xmlhttprequest-not-so-good#comment-2496</guid>
		<description>Eric,
I'll see if I can get something I can show publicly to demo the difference.  Like I said, the http request are being returned with data but IE7 doesn't display the results with the same performance with the option turned off.  I wasn't aware they are both using MSXML, making wonder if this is a rendering issue.</description>
		<content:encoded><![CDATA[<p>Eric,<br />
I&#8217;ll see if I can get something I can show publicly to demo the difference.  Like I said, the http request are being returned with data but IE7 doesn&#8217;t display the results with the same performance with the option turned off.  I wasn&#8217;t aware they are both using MSXML, making wonder if this is a rendering issue.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
