<?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: Foldblog: Handling Multiple XHRs</title>
	<atom:link href="http://ajaxian.com/archives/foldblog-handling-multiple-xhrs/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/foldblog-handling-multiple-xhrs</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Luis Torrefranca</title>
		<link>http://ajaxian.com/archives/foldblog-handling-multiple-xhrs/comment-page-1#comment-3647</link>
		<dc:creator>Luis Torrefranca</dc:creator>
		<pubDate>Sat, 18 Feb 2006 18:48:06 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=778#comment-3647</guid>
		<description>I have a way to get around the single http_request resource and multiple requests to it.  It still uses it as a global variable, but as an array.  In a nutshell, it goes through the array and finds an available resource.  If there isn&#039;t one, it creates a new one.

Here&#039;s a sample of it in use: http://www.digitalbonsai.com/xhrmulti.php

Three functions that use XHR are called at the same time (well, one right after the other).  The list at the bottom of the page show the xhr[] variables that were generated.

- Luis (lu@digitalbonsai.com)</description>
		<content:encoded><![CDATA[<p>I have a way to get around the single http_request resource and multiple requests to it.  It still uses it as a global variable, but as an array.  In a nutshell, it goes through the array and finds an available resource.  If there isn&#8217;t one, it creates a new one.</p>
<p>Here&#8217;s a sample of it in use: <a href="http://www.digitalbonsai.com/xhrmulti.php" rel="nofollow">http://www.digitalbonsai.com/xhrmulti.php</a></p>
<p>Three functions that use XHR are called at the same time (well, one right after the other).  The list at the bottom of the page show the xhr[] variables that were generated.</p>
<p>- Luis (lu@digitalbonsai.com)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Web Chronicals &#187; Blog Archive &#187; Foldblog: Handling Multiple XHRs</title>
		<link>http://ajaxian.com/archives/foldblog-handling-multiple-xhrs/comment-page-1#comment-2781</link>
		<dc:creator>The Web Chronicals &#187; Blog Archive &#187; Foldblog: Handling Multiple XHRs</dc:creator>
		<pubDate>Thu, 26 Jan 2006 02:35:57 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=778#comment-2781</guid>
		<description>[...] Foldblog: Handling Multiple XHRs Apparently, Fold (not there yet) is to be a new Web 2.0 start page. In any event, the Fold Development Blog, by Axel Wolf, is explaining the goings-on in their Ruby-On-Rails development effort, and a recent post explains how they deal with multiple â€¦ [...]</description>
		<content:encoded><![CDATA[<p>[...] Foldblog: Handling Multiple XHRs Apparently, Fold (not there yet) is to be a new Web 2.0 start page. In any event, the Fold Development Blog, by Axel Wolf, is explaining the goings-on in their Ruby-On-Rails development effort, and a recent post explains how they deal with multiple â€¦ [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikepk</title>
		<link>http://ajaxian.com/archives/foldblog-handling-multiple-xhrs/comment-page-1#comment-2770</link>
		<dc:creator>mikepk</dc:creator>
		<pubDate>Wed, 25 Jan 2006 21:44:05 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=778#comment-2770</guid>
		<description>so much for fancy formatting.
network.http.pipelining=false
network.http.pipelining.maxrequests=4 
network.http.proxy.pipeline=false 
Change the booleans to true, and increase the max request to some reasonable number like 20. Add a property â€œnglayout.initialpaint.delay=0â€³. Obviously this is a little involved for end users but could be useful for testing purposes.</description>
		<content:encoded><![CDATA[<p>so much for fancy formatting.<br />
network.http.pipelining=false<br />
network.http.pipelining.maxrequests=4<br />
network.http.proxy.pipeline=false<br />
Change the booleans to true, and increase the max request to some reasonable number like 20. Add a property â€œnglayout.initialpaint.delay=0â€³. Obviously this is a little involved for end users but could be useful for testing purposes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikepk</title>
		<link>http://ajaxian.com/archives/foldblog-handling-multiple-xhrs/comment-page-1#comment-2769</link>
		<dc:creator>mikepk</dc:creator>
		<pubDate>Wed, 25 Jan 2006 21:39:47 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=778#comment-2769</guid>
		<description>So digging into the multiple request issue a bit, I think I&#039;ve found that firefox can actually hold more request in flight simultaneously. Essentially you want to enable pipelining and increase the max outstanding values. Go into firefox, and go to &quot;about:config&quot;. 
There are a few options you can tweak regarding simultaneity. Put &quot;network.http&quot; into the filter box. The options you&#039;re looking for are the following. 
network.http.pipelining=falsenetwork.http.pipelining.maxrequests=4network.http.proxy.pipelining=false

Change the booleans to true, and increase the max request to some reasonable number like 20. Add a property &quot;nglayout.initialpaint.delay=0&quot;. Obviously this is a little involved for end users but could be useful for testing purposes.

Check out &lt;a href=&quot;http://yajaf.blogspot.com/2006/01/faq.html&quot; rel=&quot;nofollow&quot;&gt;YAJAF!&lt;/a&gt; still soliciting feedack!</description>
		<content:encoded><![CDATA[<p>So digging into the multiple request issue a bit, I think I&#8217;ve found that firefox can actually hold more request in flight simultaneously. Essentially you want to enable pipelining and increase the max outstanding values. Go into firefox, and go to &#8220;about:config&#8221;.<br />
There are a few options you can tweak regarding simultaneity. Put &#8220;network.http&#8221; into the filter box. The options you&#8217;re looking for are the following.<br />
network.http.pipelining=falsenetwork.http.pipelining.maxrequests=4network.http.proxy.pipelining=false</p>
<p>Change the booleans to true, and increase the max request to some reasonable number like 20. Add a property &#8220;nglayout.initialpaint.delay=0&#8243;. Obviously this is a little involved for end users but could be useful for testing purposes.</p>
<p>Check out <a href="http://yajaf.blogspot.com/2006/01/faq.html" rel="nofollow">YAJAF!</a> still soliciting feedack!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Wolf</title>
		<link>http://ajaxian.com/archives/foldblog-handling-multiple-xhrs/comment-page-1#comment-2766</link>
		<dc:creator>Axel Wolf</dc:creator>
		<pubDate>Wed, 25 Jan 2006 19:34:17 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=778#comment-2766</guid>
		<description>Yeah, it should read that you have one &quot;single, globally defined variable&quot; (that is assigned a new XHR object for each call etc. which will ovioulsly not work if you have more than one request at a time) Thanks for pointing this out.</description>
		<content:encoded><![CDATA[<p>Yeah, it should read that you have one &#8220;single, globally defined variable&#8221; (that is assigned a new XHR object for each call etc. which will ovioulsly not work if you have more than one request at a time) Thanks for pointing this out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikepk</title>
		<link>http://ajaxian.com/archives/foldblog-handling-multiple-xhrs/comment-page-1#comment-2765</link>
		<dc:creator>mikepk</dc:creator>
		<pubDate>Wed, 25 Jan 2006 19:10:42 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=778#comment-2765</guid>
		<description>Hmm that&#039;s interesting, I guess I never noticed since most of my sample applications use very small communication payloads between application and back end. Fired up the network analyzer, and sure enough it looks like you&#039;re right. Gonna make a new sample application to pound on the data pipe interface to see what I can get on the network analyzer. Makes me think that maybe a scatter/gather method might work for increasing the efficiency of the link, especially for smaller transactions. Will try to implement and see what it does.
Thanks for the tip!</description>
		<content:encoded><![CDATA[<p>Hmm that&#8217;s interesting, I guess I never noticed since most of my sample applications use very small communication payloads between application and back end. Fired up the network analyzer, and sure enough it looks like you&#8217;re right. Gonna make a new sample application to pound on the data pipe interface to see what I can get on the network analyzer. Makes me think that maybe a scatter/gather method might work for increasing the efficiency of the link, especially for smaller transactions. Will try to implement and see what it does.<br />
Thanks for the tip!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe</title>
		<link>http://ajaxian.com/archives/foldblog-handling-multiple-xhrs/comment-page-1#comment-2763</link>
		<dc:creator>Christophe</dc:creator>
		<pubDate>Wed, 25 Jan 2006 18:42:38 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=778#comment-2763</guid>
		<description>In firefox you can only have two pending requests. You can create an infinity of XHRs objects, but requests will only be dispatched two by two. I haven&#039;t tested it in IE yet, but certainly it has something like that too. This is a good limitation, if you could create an infinity of pending requests this would overload the web server.</description>
		<content:encoded><![CDATA[<p>In firefox you can only have two pending requests. You can create an infinity of XHRs objects, but requests will only be dispatched two by two. I haven&#8217;t tested it in IE yet, but certainly it has something like that too. This is a good limitation, if you could create an infinity of pending requests this would overload the web server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikepk</title>
		<link>http://ajaxian.com/archives/foldblog-handling-multiple-xhrs/comment-page-1#comment-2761</link>
		<dc:creator>mikepk</dc:creator>
		<pubDate>Wed, 25 Jan 2006 18:24:35 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=778#comment-2761</guid>
		<description>Actually you have to create a new XHR object for every request. I think he&#039;s saying they have one function/object that wraps this creation process and handles the asynchrounous return. 

In my own framework I use some neat object oriented techniques to handle multiple requests. I&#039;m guessing it&#039;s similar to the &quot;ajax in action&quot; referred to in the text. 

I create &quot;data pipe&quot; objects and have objects that implement a pipe-reciever interface. Objects that use the data pipe, are automatically returned the data they requested through the interface.

Stll looking for feedback on &lt;a&gt;YAJAF!&lt;/a&gt;, all comments welcome.</description>
		<content:encoded><![CDATA[<p>Actually you have to create a new XHR object for every request. I think he&#8217;s saying they have one function/object that wraps this creation process and handles the asynchrounous return. </p>
<p>In my own framework I use some neat object oriented techniques to handle multiple requests. I&#8217;m guessing it&#8217;s similar to the &#8220;ajax in action&#8221; referred to in the text. </p>
<p>I create &#8220;data pipe&#8221; objects and have objects that implement a pipe-reciever interface. Objects that use the data pipe, are automatically returned the data they requested through the interface.</p>
<p>Stll looking for feedback on <a>YAJAF!</a>, all comments welcome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julien Couvreur</title>
		<link>http://ajaxian.com/archives/foldblog-handling-multiple-xhrs/comment-page-1#comment-2759</link>
		<dc:creator>Julien Couvreur</dc:creator>
		<pubDate>Wed, 25 Jan 2006 18:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=778#comment-2759</guid>
		<description>â€œMost introductory AJAX examples only have a single, globally defined XMLHttpRequest object. â€œ

I thought most tutorials actually show you to create a new XHR object for every request, which is the opposite problem.</description>
		<content:encoded><![CDATA[<p>â€œMost introductory AJAX examples only have a single, globally defined XMLHttpRequest object. â€œ</p>
<p>I thought most tutorials actually show you to create a new XHR object for every request, which is the opposite problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: La brujula verde &#187; Fold, otra pÃ¡gina de inicio &#8220;Ã  la web 2.0&#8243;</title>
		<link>http://ajaxian.com/archives/foldblog-handling-multiple-xhrs/comment-page-1#comment-2756</link>
		<dc:creator>La brujula verde &#187; Fold, otra pÃ¡gina de inicio &#8220;Ã  la web 2.0&#8243;</dc:creator>
		<pubDate>Wed, 25 Jan 2006 17:10:02 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=778#comment-2756</guid>
		<description>[...] Aporta tu opiniÃ³n  Suscribete al feed de la conversaciÃ³n.    Post  Enviar artÃ­culo por email Haz trackback desde tu blog. Guardar en del.icio.us    ArtÃ­culosRelacionados [...]</description>
		<content:encoded><![CDATA[<p>[...] Aporta tu opiniÃ³n  Suscribete al feed de la conversaciÃ³n.    Post  Enviar artÃ­culo por email Haz trackback desde tu blog. Guardar en del.icio.us    ArtÃ­culosRelacionados [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

