<?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: Encapsulating Ajax XMLHTTPRequest Calls within JavaScript classes</title>
	<atom:link href="http://www.mikechambers.com/blog/2006/01/31/encapsulating-ajax-xmlhttprequest-calls-within-javascript-classes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikechambers.com/blog/2006/01/31/encapsulating-ajax-xmlhttprequest-calls-within-javascript-classes/</link>
	<description>code = joy</description>
	<pubDate>Tue, 06 Jan 2009 19:03:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: abh</title>
		<link>http://www.mikechambers.com/blog/2006/01/31/encapsulating-ajax-xmlhttprequest-calls-within-javascript-classes/comment-page-1/#comment-11236</link>
		<dc:creator>abh</dc:creator>
		<pubDate>Fri, 22 Feb 2008 06:19:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=945#comment-11236</guid>
		<description>The file download link does not work. Why don't you remove that?</description>
		<content:encoded><![CDATA[<p>The file download link does not work. Why don&#8217;t you remove that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.mikechambers.com/blog/2006/01/31/encapsulating-ajax-xmlhttprequest-calls-within-javascript-classes/comment-page-1/#comment-10633</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Thu, 06 Dec 2007 03:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=945#comment-10633</guid>
		<description>This code:

request.onreadystatechange = this.response_handler ();

returns error "Object Doesn't Support This Property or Method" and has to be replaced with this code:

var _this = this;
request.onreadystatechange = function() {_this.response_handler ()}

where function request_handler is your function, whatever you named it.

I came up with this after I read your post. Thank you so much. I hope this will help others too.</description>
		<content:encoded><![CDATA[<p>This code:</p>
<p>request.onreadystatechange = this.response_handler ();</p>
<p>returns error &#8220;Object Doesn&#8217;t Support This Property or Method&#8221; and has to be replaced with this code:</p>
<p>var _this = this;<br />
request.onreadystatechange = function() {_this.response_handler ()}</p>
<p>where function request_handler is your function, whatever you named it.</p>
<p>I came up with this after I read your post. Thank you so much. I hope this will help others too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SingIT</title>
		<link>http://www.mikechambers.com/blog/2006/01/31/encapsulating-ajax-xmlhttprequest-calls-within-javascript-classes/comment-page-1/#comment-9407</link>
		<dc:creator>SingIT</dc:creator>
		<pubDate>Mon, 08 Oct 2007 22:47:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=945#comment-9407</guid>
		<description>Hi there, your article has proven very useful
thank you.</description>
		<content:encoded><![CDATA[<p>Hi there, your article has proven very useful<br />
thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kehiokkk</title>
		<link>http://www.mikechambers.com/blog/2006/01/31/encapsulating-ajax-xmlhttprequest-calls-within-javascript-classes/comment-page-1/#comment-8886</link>
		<dc:creator>Kehiokkk</dc:creator>
		<pubDate>Mon, 09 Jul 2007 04:45:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=945#comment-8886</guid>
		<description>Thank you!
 breast augmentation southern california &lt;a href="http://breastau13.freehostia.com/1 " rel="nofollow"&gt;breast augmentation new jersey&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Thank you!<br />
 breast augmentation southern california <a href="http://breastau13.freehostia.com/1 " rel="nofollow">breast augmentation new jersey</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.mikechambers.com/blog/2006/01/31/encapsulating-ajax-xmlhttprequest-calls-within-javascript-classes/comment-page-1/#comment-7422</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 01 May 2007 02:12:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=945#comment-7422</guid>
		<description>Somebody else has mentioned this, too, but nice little hack making this a local var and then setting it as as the onreadystatechange function. I've spent a few hours trying to figure this out. Thanks!</description>
		<content:encoded><![CDATA[<p>Somebody else has mentioned this, too, but nice little hack making this a local var and then setting it as as the onreadystatechange function. I&#8217;ve spent a few hours trying to figure this out. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank C</title>
		<link>http://www.mikechambers.com/blog/2006/01/31/encapsulating-ajax-xmlhttprequest-calls-within-javascript-classes/comment-page-1/#comment-6572</link>
		<dc:creator>Frank C</dc:creator>
		<pubDate>Thu, 28 Sep 2006 19:16:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=945#comment-6572</guid>
		<description>PLEASE NOTE THERE IS A SMALL SYNTAX BUG!!!!!

I confirmed this with Mike, the "onData" section has a small bug in the code, the line:

this.onError({status:this_request.status,

actually should be

this.onError({status:this._request.status,

with a period after this.

Thanks all,

fc
</description>
		<content:encoded><![CDATA[<p>PLEASE NOTE THERE IS A SMALL SYNTAX BUG!!!!!</p>
<p>I confirmed this with Mike, the &#8220;onData&#8221; section has a small bug in the code, the line:</p>
<p>this.onError({status:this_request.status,</p>
<p>actually should be</p>
<p>this.onError({status:this._request.status,</p>
<p>with a period after this.</p>
<p>Thanks all,</p>
<p>fc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fernando trasvina</title>
		<link>http://www.mikechambers.com/blog/2006/01/31/encapsulating-ajax-xmlhttprequest-calls-within-javascript-classes/comment-page-1/#comment-6571</link>
		<dc:creator>fernando trasvina</dc:creator>
		<pubDate>Sat, 26 Aug 2006 04:40:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=945#comment-6571</guid>
		<description>thanks for the lil class im being able to correctly use the callback function now to my constructor</description>
		<content:encoded><![CDATA[<p>thanks for the lil class im being able to correctly use the callback function now to my constructor</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge Luna</title>
		<link>http://www.mikechambers.com/blog/2006/01/31/encapsulating-ajax-xmlhttprequest-calls-within-javascript-classes/comment-page-1/#comment-6570</link>
		<dc:creator>Jorge Luna</dc:creator>
		<pubDate>Wed, 09 Aug 2006 14:22:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=945#comment-6570</guid>
		<description>Hi there, your article has proven very useful. And programming using OO is just a breeze.

I have a question that i havent been able to find an answer to, and was hopping any of you could help:

Im loading some content dynamically using AJAX into some page. Whithin the dynamic content I want to make another dynamic call and fill another element. The problem is, the element from the (first) dynamic content is not in the DOM tree! so I cant do a getElementById.

Is there a way to do this that doesn't involve parsing the conteng into the dom tree?

Thank you!</description>
		<content:encoded><![CDATA[<p>Hi there, your article has proven very useful. And programming using OO is just a breeze.</p>
<p>I have a question that i havent been able to find an answer to, and was hopping any of you could help:</p>
<p>Im loading some content dynamically using AJAX into some page. Whithin the dynamic content I want to make another dynamic call and fill another element. The problem is, the element from the (first) dynamic content is not in the DOM tree! so I cant do a getElementById.</p>
<p>Is there a way to do this that doesn&#8217;t involve parsing the conteng into the dom tree?</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jack</title>
		<link>http://www.mikechambers.com/blog/2006/01/31/encapsulating-ajax-xmlhttprequest-calls-within-javascript-classes/comment-page-1/#comment-6569</link>
		<dc:creator>jack</dc:creator>
		<pubDate>Thu, 03 Aug 2006 21:56:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=945#comment-6569</guid>
		<description>I dont understand the reason for:

this._request.onreadystatechange = function(){_this._onData()};

I think I need some more basic JS knowledge.  Could you point me at a resource the explains what is going on there.</description>
		<content:encoded><![CDATA[<p>I dont understand the reason for:</p>
<p>this._request.onreadystatechange = function(){_this._onData()};</p>
<p>I think I need some more basic JS knowledge.  Could you point me at a resource the explains what is going on there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vitaly</title>
		<link>http://www.mikechambers.com/blog/2006/01/31/encapsulating-ajax-xmlhttprequest-calls-within-javascript-classes/comment-page-1/#comment-6568</link>
		<dc:creator>Vitaly</dc:creator>
		<pubDate>Mon, 31 Jul 2006 11:49:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=945#comment-6568</guid>
		<description>Works fine in IE but I don't receive response from the server when using Mozilla Firefox 1.5.05
Could it be some Firefox settings? JS is enabled with all grants. I debugged with alerts, the xmlhttprequest is created with the last option:
xmlHttp = new XMLHttpRequest();
but still no luck.
Even more weird:
in Opera I get till onData but the this._request.responseText is "" - nothing, zilch, zero.</description>
		<content:encoded><![CDATA[<p>Works fine in IE but I don&#8217;t receive response from the server when using Mozilla Firefox 1.5.05<br />
Could it be some Firefox settings? JS is enabled with all grants. I debugged with alerts, the xmlhttprequest is created with the last option:<br />
xmlHttp = new XMLHttpRequest();<br />
but still no luck.<br />
Even more weird:<br />
in Opera I get till onData but the this._request.responseText is &#8220;&#8221; - nothing, zilch, zero.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
