<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: &#8216;Ajax in Action&#8217; Book</title>
	<link>http://dave.sunwheeltech.com/wordpress/2005/06/13/ajax-in-action-book/</link>
	<description>Dave Crane's weblog</description>
	<pubDate>Fri, 19 Mar 2010 01:06:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.1.2</generator>

	<item>
		<title>by: Colleen</title>
		<link>http://dave.sunwheeltech.com/wordpress/2005/06/13/ajax-in-action-book/#comment-5539</link>
		<pubDate>Tue, 12 Sep 2006 08:40:41 +0000</pubDate>
		<guid>http://dave.sunwheeltech.com/wordpress/2005/06/13/ajax-in-action-book/#comment-5539</guid>
					<description>Chapter 9- Creating a double combo linked list with AJAX.
Dear Dave and Co,
I love love love Chapter 9.  This is perfect for my website.  The only problem is Listing 4:DoubleComboXML.aspx.vb is outside my realm of understanding.  I am writing in PHP and AJAX is new to me so bringing it all together with that .vb program is messing with my total coherance.  Is there any way you could clear this up for me?
If not, I will just suffer and leave my page submiting the traditional way.
Thanks,
Colleen</description>
		<content:encoded><![CDATA[	<p>Chapter 9- Creating a double combo linked list with AJAX.<br />
Dear Dave and Co,<br />
I love love love Chapter 9.  This is perfect for my website.  The only problem is Listing 4:DoubleComboXML.aspx.vb is outside my realm of understanding.  I am writing in PHP and AJAX is new to me so bringing it all together with that .vb program is messing with my total coherance.  Is there any way you could clear this up for me?<br />
If not, I will just suffer and leave my page submiting the traditional way.<br />
Thanks,<br />
Colleen
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Ray</title>
		<link>http://dave.sunwheeltech.com/wordpress/2005/06/13/ajax-in-action-book/#comment-6</link>
		<pubDate>Mon, 27 Jun 2005 04:20:11 +0000</pubDate>
		<guid>http://dave.sunwheeltech.com/wordpress/2005/06/13/ajax-in-action-book/#comment-6</guid>
					<description>Thanks for the response!

Maybe I simplifed my case too much. Actually, I cannot ignore request completely. Let say there are 2 spreadsheet rows, each change in a row will trigger the changes of subtotal and grand total (yes, not just one destination). When user changes cells of rows, the grand total will be the problem if the response order is not guaranteed. I am thinking to implement an event queue in javascript but I am not sure whether it is the only way to go...

For the IE 6 only supports 2 connections at a time, is that means the request will be queued til the connections are free? If so, the asynchronous behavior of AJAX is limited and the responsiveness of the UI will be hurted.. am i right?

thanks

ray</description>
		<content:encoded><![CDATA[	<p>Thanks for the response!</p>
	<p>Maybe I simplifed my case too much. Actually, I cannot ignore request completely. Let say there are 2 spreadsheet rows, each change in a row will trigger the changes of subtotal and grand total (yes, not just one destination). When user changes cells of rows, the grand total will be the problem if the response order is not guaranteed. I am thinking to implement an event queue in javascript but I am not sure whether it is the only way to go&#8230;</p>
	<p>For the IE 6 only supports 2 connections at a time, is that means the request will be queued til the connections are free? If so, the asynchronous behavior of AJAX is limited and the responsiveness of the UI will be hurted.. am i right?</p>
	<p>thanks</p>
	<p>ray
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: dave</title>
		<link>http://dave.sunwheeltech.com/wordpress/2005/06/13/ajax-in-action-book/#comment-5</link>
		<pubDate>Sun, 26 Jun 2005 22:13:36 +0000</pubDate>
		<guid>http://dave.sunwheeltech.com/wordpress/2005/06/13/ajax-in-action-book/#comment-5</guid>
					<description>Hi Ray,

Thanks for the kind words, and good luck with your project - sounds like a familiar scenario to me :-)

To answer your specific points:
(1) you'd need to specify in the second request that it should cancel the first one, as both are targetting the same destination cell. Use cell id as a uid maybe? Command pattern has some useful features for cancelling and undoing user actions which you might like to investigate.
(2) Internet Explorer typically only allows two http connections at a time, IIRC - can be altered with a registry hack, I think.</description>
		<content:encoded><![CDATA[	<p>Hi Ray,</p>
	<p>Thanks for the kind words, and good luck with your project - sounds like a familiar scenario to me :-)</p>
	<p>To answer your specific points:<br />
(1) you&#8217;d need to specify in the second request that it should cancel the first one, as both are targetting the same destination cell. Use cell id as a uid maybe? Command pattern has some useful features for cancelling and undoing user actions which you might like to investigate.<br />
(2) Internet Explorer typically only allows two http connections at a time, IIRC - can be altered with a registry hack, I think.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Ray</title>
		<link>http://dave.sunwheeltech.com/wordpress/2005/06/13/ajax-in-action-book/#comment-4</link>
		<pubDate>Sat, 25 Jun 2005 18:21:58 +0000</pubDate>
		<guid>http://dave.sunwheeltech.com/wordpress/2005/06/13/ajax-in-action-book/#comment-4</guid>
					<description>hi, Dave

It is great that some like you and Eric giving us guidelines of how to use AJAX right! I have got some requirements from our boss that he wants to to use web browser to replace one of our critical products that is written in SmallTalk (fat client). In order to maintain the usability, we decide to adopt AJAX.... However, we found out the unknown in AJAX that I hope guru like u or Eric can give a light. 

(1) Request Ordering
AJAX sends request asynchronously back to server, but we cannot guarantee the order of the requests being process and/or the order of the response being send back. Let say I have a spreadsheet app, there are 3 cells A1, B1 and C1 and A1+B1=C1 (the formula is simplied to illustrate the point. In reality, it is complicated formula that needs to execute in the server side). When I change A1 then B1, there are 2 requests send back to the server for calculation. Ideally, the response of the last request will tell me the final result of C1. But if the response of first request comes after the 2nd. The change of B1 will be lost! How to guarantee that?

(2) Error Handling
If the request is lost somehow, will XMLHttpRequest timeout? Besides, if each request use a new XMLHttpRequest, are there any thread contention when the responses come back that may modify the same field... (again, it sounds like ordering or synchronous issues...)

thanks
ray</description>
		<content:encoded><![CDATA[	<p>hi, Dave</p>
	<p>It is great that some like you and Eric giving us guidelines of how to use AJAX right! I have got some requirements from our boss that he wants to to use web browser to replace one of our critical products that is written in SmallTalk (fat client). In order to maintain the usability, we decide to adopt AJAX&#8230;. However, we found out the unknown in AJAX that I hope guru like u or Eric can give a light. </p>
	<p>(1) Request Ordering<br />
AJAX sends request asynchronously back to server, but we cannot guarantee the order of the requests being process and/or the order of the response being send back. Let say I have a spreadsheet app, there are 3 cells A1, B1 and C1 and A1+B1=C1 (the formula is simplied to illustrate the point. In reality, it is complicated formula that needs to execute in the server side). When I change A1 then B1, there are 2 requests send back to the server for calculation. Ideally, the response of the last request will tell me the final result of C1. But if the response of first request comes after the 2nd. The change of B1 will be lost! How to guarantee that?</p>
	<p>(2) Error Handling<br />
If the request is lost somehow, will XMLHttpRequest timeout? Besides, if each request use a new XMLHttpRequest, are there any thread contention when the responses come back that may modify the same field&#8230; (again, it sounds like ordering or synchronous issues&#8230;)</p>
	<p>thanks<br />
ray
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: dave</title>
		<link>http://dave.sunwheeltech.com/wordpress/2005/06/13/ajax-in-action-book/#comment-3</link>
		<pubDate>Wed, 22 Jun 2005 20:38:37 +0000</pubDate>
		<guid>http://dave.sunwheeltech.com/wordpress/2005/06/13/ajax-in-action-book/#comment-3</guid>
					<description>Hi Rob,

There are quite a few frameworks popping up, aren't there? We can't hope to cover all of them, and more will inevitably appear between finalising the manuscript and the publication date. Looking at a lot of the frameworks from a design point of view, I see a lot of similarities in style, so there's plenty to talk about without getting stuck on a particular implementation.</description>
		<content:encoded><![CDATA[	<p>Hi Rob,</p>
	<p>There are quite a few frameworks popping up, aren&#8217;t there? We can&#8217;t hope to cover all of them, and more will inevitably appear between finalising the manuscript and the publication date. Looking at a lot of the frameworks from a design point of view, I see a lot of similarities in style, so there&#8217;s plenty to talk about without getting stuck on a particular implementation.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Rob Sanheim</title>
		<link>http://dave.sunwheeltech.com/wordpress/2005/06/13/ajax-in-action-book/#comment-2</link>
		<pubDate>Wed, 22 Jun 2005 13:12:46 +0000</pubDate>
		<guid>http://dave.sunwheeltech.com/wordpress/2005/06/13/ajax-in-action-book/#comment-2</guid>
					<description>Sounds interesting.  Do you have any ideas on a release date?  Also, what sort of approach will you take to cover the frameworks popping up all over the place to support ajax or integrating with ajax?</description>
		<content:encoded><![CDATA[	<p>Sounds interesting.  Do you have any ideas on a release date?  Also, what sort of approach will you take to cover the frameworks popping up all over the place to support ajax or integrating with ajax?
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
