<?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"
	>
<channel>
	<title>Comments on: Deciding What AJAX Programming Style to Use</title>
	<atom:link href="http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/</link>
	<description>The weblog of Joshua Eichorn, AJAX, PHP and Open Source</description>
	<pubDate>Wed, 07 Jan 2009 21:27:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Joshua Eichorn</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/#comment-166475</link>
		<dc:creator>Joshua Eichorn</dc:creator>
		<pubDate>Thu, 15 Mar 2007 16:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/#comment-166475</guid>
		<description>If your reloading the majority of the page, you don't gain a lot by using AJAX, you could just use a meta refresh tag, or refresh the page using a bit of JS.

This might be a case where moving just the data that is updated using an RPC style call might make a lot of sense.  You get the data and then update your timestamp and change status images using the DOM.  Im guessing the your actually only updating maybe 10-20 pieces of data well under 1k where a full page reload might be 20K or 30K.  So you could get some huge bandwith savings.

So too sum it up, if you need to save bandwidth and can make an RPC style approach work then AJAX should work for you.

If you don't need to save the bandwidth or you don't want to mess with RPC AJAX then don't use AJAX at all just refresh the entire page.</description>
		<content:encoded><![CDATA[<p>If your reloading the majority of the page, you don&#8217;t gain a lot by using AJAX, you could just use a meta refresh tag, or refresh the page using a bit of JS.</p>
<p>This might be a case where moving just the data that is updated using an RPC style call might make a lot of sense.  You get the data and then update your timestamp and change status images using the DOM.  Im guessing the your actually only updating maybe 10-20 pieces of data well under 1k where a full page reload might be 20K or 30K.  So you could get some huge bandwith savings.</p>
<p>So too sum it up, if you need to save bandwidth and can make an RPC style approach work then AJAX should work for you.</p>
<p>If you don&#8217;t need to save the bandwidth or you don&#8217;t want to mess with RPC AJAX then don&#8217;t use AJAX at all just refresh the entire page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sudeep</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/#comment-166345</link>
		<dc:creator>Sudeep</dc:creator>
		<pubDate>Thu, 15 Mar 2007 08:13:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/#comment-166345</guid>
		<description>Hi ,

           I have a problem deciding whether to use Ajax for a situation like the whole page has to be refreshed . We are designing a dashboard which  gives the status of the clients worldwide with green light indicating that the client is working fine and the red indicating that it has failed ,I need to poll the server for the status every 10 mins and update the dashboard accordingly .It also displays the last response time of each client so the time option also has to be updated . 
Can I use AJAX for this situation .Does it make any difference using AJAX in this case .......... 

Thanks and Regards,
      Sudeep</description>
		<content:encoded><![CDATA[<p>Hi ,</p>
<p>           I have a problem deciding whether to use Ajax for a situation like the whole page has to be refreshed . We are designing a dashboard which  gives the status of the clients worldwide with green light indicating that the client is working fine and the red indicating that it has failed ,I need to poll the server for the status every 10 mins and update the dashboard accordingly .It also displays the last response time of each client so the time option also has to be updated .<br />
Can I use AJAX for this situation .Does it make any difference using AJAX in this case &#8230;&#8230;&#8230;. </p>
<p>Thanks and Regards,<br />
      Sudeep</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Schneider</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/#comment-119426</link>
		<dc:creator>Jan Schneider</dc:creator>
		<pubDate>Thu, 04 Jan 2007 23:17:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/#comment-119426</guid>
		<description>I didn't think about the different AJAX techniques we use before I read your comments. But it's a nice distinction and we actually use chunks and widgets in DIMP (http://www.horde.org/dimp/). I guess the different methods have been chosen correctly intuitively. We use chunks when changing larger parts of the interface like displaying a message, opening a compose view etc. Widgets are created dynamically from JSON objects or loaded as static HTML chunks and use callbacks to update themselves, e.g. in the folder listings, mailbox views and similar.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t think about the different AJAX techniques we use before I read your comments. But it&#8217;s a nice distinction and we actually use chunks and widgets in DIMP (http://www.horde.org/dimp/). I guess the different methods have been chosen correctly intuitively. We use chunks when changing larger parts of the interface like displaying a message, opening a compose view etc. Widgets are created dynamically from JSON objects or loaded as static HTML chunks and use callbacks to update themselves, e.g. in the folder listings, mailbox views and similar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurent</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/#comment-119420</link>
		<dc:creator>Laurent</dc:creator>
		<pubDate>Thu, 04 Jan 2007 23:00:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/#comment-119420</guid>
		<description>Hey Stan,

Just out of curiosity,  what kind of web-based education software are you guys making?</description>
		<content:encoded><![CDATA[<p>Hey Stan,</p>
<p>Just out of curiosity,  what kind of web-based education software are you guys making?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stan</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/#comment-119248</link>
		<dc:creator>Stan</dc:creator>
		<pubDate>Thu, 04 Jan 2007 18:47:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/#comment-119248</guid>
		<description>Josh,
I've been working for a company that writes web-based education software in Java and they're progressively moving their app over to being more AJAX driven.  Unfortunately, the preference there is that we use DOM to make any alterations to the page.  We do this even when chunks would save us a lot of time and speed on the browser.  Error handling in struts sucks - but the one advantage I've had thus far with the way we do it there is returning error objects to the client Javascript and dealing with it there.  I've not yet seen a clean and easy way of handling errors with chunking.  Part of the struggle I've been faced with too is that we're limited to using Prototype and each AJAX call results in a separate action file.  Pain in the arsh!  Now on the other hand with some non-profit work I do in php I use HTML_AJAX most of the time, there though I use it mostly to trigger events, throwing flags on a database table row - when I do need to handle large blocks of HTML I handle them in chunks.

Pax,
- Stan</description>
		<content:encoded><![CDATA[<p>Josh,<br />
I&#8217;ve been working for a company that writes web-based education software in Java and they&#8217;re progressively moving their app over to being more AJAX driven.  Unfortunately, the preference there is that we use DOM to make any alterations to the page.  We do this even when chunks would save us a lot of time and speed on the browser.  Error handling in struts sucks - but the one advantage I&#8217;ve had thus far with the way we do it there is returning error objects to the client Javascript and dealing with it there.  I&#8217;ve not yet seen a clean and easy way of handling errors with chunking.  Part of the struggle I&#8217;ve been faced with too is that we&#8217;re limited to using Prototype and each AJAX call results in a separate action file.  Pain in the arsh!  Now on the other hand with some non-profit work I do in php I use HTML_AJAX most of the time, there though I use it mostly to trigger events, throwing flags on a database table row - when I do need to handle large blocks of HTML I handle them in chunks.</p>
<p>Pax,<br />
- Stan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Eichorn</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/#comment-119229</link>
		<dc:creator>Joshua Eichorn</dc:creator>
		<pubDate>Thu, 04 Jan 2007 17:40:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/#comment-119229</guid>
		<description>Ivo:

It is an argument for using AJAX page chunks even for things like a live grid.  But im trying to stay focused on the development side.  One approach might be  faster but as long as whatever approach you use is fast enough does relative speed really matter?</description>
		<content:encoded><![CDATA[<p>Ivo:</p>
<p>It is an argument for using AJAX page chunks even for things like a live grid.  But im trying to stay focused on the development side.  One approach might be  faster but as long as whatever approach you use is fast enough does relative speed really matter?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivo Jansch</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/#comment-119223</link>
		<dc:creator>Ivo Jansch</dc:creator>
		<pubDate>Thu, 04 Jan 2007 17:29:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/#comment-119223</guid>
		<description>Joshua,

I think this link is relevant to your post; it performs a banchmark of innerhtml and dom methods for manipulating elements in the resulting page:

http://www.quirksmode.org/dom/innerhtml.html</description>
		<content:encoded><![CDATA[<p>Joshua,</p>
<p>I think this link is relevant to your post; it performs a banchmark of innerhtml and dom methods for manipulating elements in the resulting page:</p>
<p><a href="http://www.quirksmode.org/dom/innerhtml.html" rel="nofollow">http://www.quirksmode.org/dom/innerhtml.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Eichorn</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/#comment-119118</link>
		<dc:creator>Joshua Eichorn</dc:creator>
		<pubDate>Thu, 04 Jan 2007 16:46:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/#comment-119118</guid>
		<description>Chris:
I'm not sure if I covered it well enough in this post, but a big part of my point is that the complexity of those other patterns usually means they are worse approaches then just doing page chunks.  I find a lot of times I tend to look at a fancy solution first, start implmenting it and then realize im just wasting time.  I'm seldom the only person working on a project these days and when I do something complex I'm the only one who can support it, and in many cases understand it.  Its not fun to be the choke point on both the backend code and the frontend because of all the AJAX you've added.

My book covers a bunch of different patterns in the example applications that are built.  It also shows off a bunch of basic stategies in a more abstract sense.  But the books focus isn't on being a patterns book so you won't see a lot of the contrast and comparision between the different approaches.</description>
		<content:encoded><![CDATA[<p>Chris:<br />
I&#8217;m not sure if I covered it well enough in this post, but a big part of my point is that the complexity of those other patterns usually means they are worse approaches then just doing page chunks.  I find a lot of times I tend to look at a fancy solution first, start implmenting it and then realize im just wasting time.  I&#8217;m seldom the only person working on a project these days and when I do something complex I&#8217;m the only one who can support it, and in many cases understand it.  Its not fun to be the choke point on both the backend code and the frontend because of all the AJAX you&#8217;ve added.</p>
<p>My book covers a bunch of different patterns in the example applications that are built.  It also shows off a bunch of basic stategies in a more abstract sense.  But the books focus isn&#8217;t on being a patterns book so you won&#8217;t see a lot of the contrast and comparision between the different approaches.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Hartjes</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/#comment-119114</link>
		<dc:creator>Chris Hartjes</dc:creator>
		<pubDate>Thu, 04 Jan 2007 16:32:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/04/deciding-what-ajax-programming-style-to-use/#comment-119114</guid>
		<description>Hey Joshua,

Until my Javascript skills get to a higher level, I do things the AJAX page chunk way.  Things like replacing the form with a thank you message after submitting valid information, click-sortable grids of website statistics.  Given the nature of the beast (find a bit of AJAX goodness that someone else created, modify it for your own needs) I think that is probably the default mode for most AJAX work.

I'm sure at some point I will encounter something I will want to do that will require a lot more Javascript so I will move to more advanced techniques.  Not to shill someone else's book, but "Ajax Design Patterns" shows lots of examples of things that would cause me to break out of the AJAX page chunk mode.  I just have to find an excuse to use one.

I'm curious:  does your book cover similar content?</description>
		<content:encoded><![CDATA[<p>Hey Joshua,</p>
<p>Until my Javascript skills get to a higher level, I do things the AJAX page chunk way.  Things like replacing the form with a thank you message after submitting valid information, click-sortable grids of website statistics.  Given the nature of the beast (find a bit of AJAX goodness that someone else created, modify it for your own needs) I think that is probably the default mode for most AJAX work.</p>
<p>I&#8217;m sure at some point I will encounter something I will want to do that will require a lot more Javascript so I will move to more advanced techniques.  Not to shill someone else&#8217;s book, but &#8220;Ajax Design Patterns&#8221; shows lots of examples of things that would cause me to break out of the AJAX page chunk mode.  I just have to find an excuse to use one.</p>
<p>I&#8217;m curious:  does your book cover similar content?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
