<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Problem with AJAX on Safari?</title>
	<atom:link href="http://www.winwebhosting.com/blog/microsoft_ajax/problem-with-ajax-on-safari/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.winwebhosting.com/blog/microsoft_ajax/problem-with-ajax-on-safari/</link>
	<description>Web Hosting Information</description>
	<lastBuildDate>Thu, 09 Feb 2012 07:54:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Dori</title>
		<link>http://www.winwebhosting.com/blog/microsoft_ajax/problem-with-ajax-on-safari/comment-page-1/#comment-2244</link>
		<dc:creator>Dori</dc:creator>
		<pubDate>Mon, 08 Mar 2010 20:54:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.winwebhosting.com/blog/microsoft_ajax/problem-with-ajax-on-safari/#comment-2244</guid>
		<description>Try this instead; it&#039;s worked for me:



var xhr = false; 

if (window.XMLHttpRequest) { 
  xhr = new XMLHttpRequest(); 
}
else {
if (window.ActiveXObject) { 
 try { 
  xhr = new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;); 
 } 
 catch (e) { } 
}

function makerequest(serverPage, objID){
    var obj = document.getElementById(objID);

    xhr.onreadystatechange = function() {
        if (xhr.readystate == 4 &amp;&amp; xhr.status == 200){
            obj.innerHTML = xhr.responseText;
        }
        else {
            obj.innerHTML = &quot;There was a problem with the request &quot; + xhr.status;
        }
    }

    xhr.open(&quot;GET&quot;, serverPage, true);
    xhr.send(null);
}

</description>
		<content:encoded><![CDATA[<p>Try this instead; it&#8217;s worked for me:</p>
<p>var xhr = false; </p>
<p>if (window.XMLHttpRequest) {<br />
  xhr = new XMLHttpRequest();<br />
}<br />
else {<br />
if (window.ActiveXObject) {<br />
 try {<br />
  xhr = new ActiveXObject(&#8220;Microsoft.XMLHTTP&#8221;);<br />
 }<br />
 catch (e) { }<br />
}</p>
<p>function makerequest(serverPage, objID){<br />
    var obj = document.getElementById(objID);</p>
<p>    xhr.onreadystatechange = function() {<br />
        if (xhr.readystate == 4 &#038;&#038; xhr.status == 200){<br />
            obj.innerHTML = xhr.responseText;<br />
        }<br />
        else {<br />
            obj.innerHTML = &#8220;There was a problem with the request &#8221; + xhr.status;<br />
        }<br />
    }</p>
<p>    xhr.open(&#8220;GET&#8221;, serverPage, true);<br />
    xhr.send(null);<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

