<?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: Why I like jQuery (over Dojo)</title>
	<atom:link href="http://www.digitalsanctuary.com/tech-blog/general/why-i-like-jquery-over-dojo.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.digitalsanctuary.com/tech-blog/general/why-i-like-jquery-over-dojo.html</link>
	<description>Java, ATG, Seam, and related Technologies</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:00:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ben Carlson</title>
		<link>http://www.digitalsanctuary.com/tech-blog/general/why-i-like-jquery-over-dojo.html/comment-page-1#comment-87839</link>
		<dc:creator>Ben Carlson</dc:creator>
		<pubDate>Tue, 04 Jan 2011 19:47:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=442#comment-87839</guid>
		<description>Hey Devon, 

Just an FYI, I wrote up a how-to document on switching the ATG Commerce Reference Store (CRS) to use dojo from Google&#039;s CDN. We&#039;ve used on a couple of high profile client sites successfully in recent months. Here&#039;s a link: https://community.atg.com/docs/DOC-1969

-Ben

P.S.  For the record, dojo is complicated and confusing to me, whereas jQuery _just makes sense_.</description>
		<content:encoded><![CDATA[<p>Hey Devon, </p>
<p>Just an FYI, I wrote up a how-to document on switching the ATG Commerce Reference Store (CRS) to use dojo from Google&#8217;s CDN. We&#8217;ve used on a couple of high profile client sites successfully in recent months. Here&#8217;s a link: <a href="https://community.atg.com/docs/DOC-1969" rel="nofollow">https://community.atg.com/docs/DOC-1969</a></p>
<p>-Ben</p>
<p>P.S.  For the record, dojo is complicated and confusing to me, whereas jQuery _just makes sense_.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Misumi</title>
		<link>http://www.digitalsanctuary.com/tech-blog/general/why-i-like-jquery-over-dojo.html/comment-page-1#comment-87647</link>
		<dc:creator>Josh Misumi</dc:creator>
		<pubDate>Tue, 04 Jan 2011 00:10:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=442#comment-87647</guid>
		<description>Couldn&#039;t agree more with this, extremely interesting article. Thanks A Lot.</description>
		<content:encoded><![CDATA[<p>Couldn&#8217;t agree more with this, extremely interesting article. Thanks A Lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lian Lee</title>
		<link>http://www.digitalsanctuary.com/tech-blog/general/why-i-like-jquery-over-dojo.html/comment-page-1#comment-72279</link>
		<dc:creator>Lian Lee</dc:creator>
		<pubDate>Wed, 13 Oct 2010 23:57:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=442#comment-72279</guid>
		<description>Well, DOJO does give you simpler way to  do things:

older version of DOJO:
dijit.byId(&quot;brandsDiv&quot;).setHref(url2);

new version of DOJO:
dijit.byId(&quot;brandsDiv&quot;).attr(‘href’, url2);

DOJO gives you full stack and control and all hosted in one standard place. It is a painful experience to look for right plugins, and you&#039;re on your own to make sure a plugin is well written, code to standards, tested, scalable and maintainable.</description>
		<content:encoded><![CDATA[<p>Well, DOJO does give you simpler way to  do things:</p>
<p>older version of DOJO:<br />
dijit.byId(&#8220;brandsDiv&#8221;).setHref(url2);</p>
<p>new version of DOJO:<br />
dijit.byId(&#8220;brandsDiv&#8221;).attr(‘href’, url2);</p>
<p>DOJO gives you full stack and control and all hosted in one standard place. It is a painful experience to look for right plugins, and you&#8217;re on your own to make sure a plugin is well written, code to standards, tested, scalable and maintainable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devon</title>
		<link>http://www.digitalsanctuary.com/tech-blog/general/why-i-like-jquery-over-dojo.html/comment-page-1#comment-55320</link>
		<dc:creator>Devon</dc:creator>
		<pubDate>Fri, 09 Apr 2010 00:07:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=442#comment-55320</guid>
		<description>Fair enough.  Dojo may work well for some people.  Personally I prefer jQuery.  Use what you want.</description>
		<content:encoded><![CDATA[<p>Fair enough.  Dojo may work well for some people.  Personally I prefer jQuery.  Use what you want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dwight Vietzke</title>
		<link>http://www.digitalsanctuary.com/tech-blog/general/why-i-like-jquery-over-dojo.html/comment-page-1#comment-55313</link>
		<dc:creator>Dwight Vietzke</dc:creator>
		<pubDate>Thu, 08 Apr 2010 23:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=442#comment-55313</guid>
		<description>Hi all,

While I don&#039;t begrudge the author here for wanting to find a &#039;simple&#039; solution to his AJAX calling problem, it might be worth mentioning that things rarely stay simple and that more control over the process is usually need at some point in the future. The Dojo example is more &#039;complicated&#039;, but offers much more control and script interface transparency. For many of us, this easily outweighs the need for simplicity. And the comment and example by &#039;Charles Z&#039; is right on.

I&#039;m not familiar with all of jQuery&#039;s functions, but I imagine that similar AJAX control and program interface options are available too. The simple call shown above just uses default values which could be modified otherwise (I suspect). If not, the above would be useless to me for serious web programming (which I doubt is the case since jQuery is held in such high regard). Anyway, the point is that jQuery is very useful and so is the Dojo Toolkit. The above example doesn&#039;t present a strong argument either way. Just use what you prefer or what works best for your current project. I happen to use Dojo more, but jQuery is just as good an alternative for many (most?) cases.</description>
		<content:encoded><![CDATA[<p>Hi all,</p>
<p>While I don&#8217;t begrudge the author here for wanting to find a &#8216;simple&#8217; solution to his AJAX calling problem, it might be worth mentioning that things rarely stay simple and that more control over the process is usually need at some point in the future. The Dojo example is more &#8216;complicated&#8217;, but offers much more control and script interface transparency. For many of us, this easily outweighs the need for simplicity. And the comment and example by &#8216;Charles Z&#8217; is right on.</p>
<p>I&#8217;m not familiar with all of jQuery&#8217;s functions, but I imagine that similar AJAX control and program interface options are available too. The simple call shown above just uses default values which could be modified otherwise (I suspect). If not, the above would be useless to me for serious web programming (which I doubt is the case since jQuery is held in such high regard). Anyway, the point is that jQuery is very useful and so is the Dojo Toolkit. The above example doesn&#8217;t present a strong argument either way. Just use what you prefer or what works best for your current project. I happen to use Dojo more, but jQuery is just as good an alternative for many (most?) cases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Z</title>
		<link>http://www.digitalsanctuary.com/tech-blog/general/why-i-like-jquery-over-dojo.html/comment-page-1#comment-43911</link>
		<dc:creator>Charles Z</dc:creator>
		<pubDate>Wed, 15 Jul 2009 14:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.digitalsanctuary.com/tech-blog/?p=442#comment-43911</guid>
		<description>It all depends on if you want to have any control of loading dom or not (a good programming practice is to have error handling when something goes wrong). You don&#039;t have to copy the who 12 lines of to make the call. You could use a wrapper function for those 12 lines of loading pages by using the following code:

my.loadPage(domName, url2) {
dojo.xhrGet( {
   // The following URL must match that used to test the server.
    url : url2,
    handleAs : &quot;text&quot;,
    timeout : 5000, // Time in milliseconds
 
    // The LOAD function will be called on a successful response.
    load : function(response, ioArgs) {
    dojo.byId(domName).innerHTML = response;
    return response;
},
 
    // The ERROR function will be called in an error case.
    error : function(response, ioArgs) {
    console.error(&quot;HTTP status code: &quot;, ioArgs.xhr.status);
    return response;
    }
});
}

then just use call 
my.loadPage(&quot;#brandDiv&quot;, url2)</description>
		<content:encoded><![CDATA[<p>It all depends on if you want to have any control of loading dom or not (a good programming practice is to have error handling when something goes wrong). You don&#8217;t have to copy the who 12 lines of to make the call. You could use a wrapper function for those 12 lines of loading pages by using the following code:</p>
<p>my.loadPage(domName, url2) {<br />
dojo.xhrGet( {<br />
   // The following URL must match that used to test the server.<br />
    url : url2,<br />
    handleAs : &#8220;text&#8221;,<br />
    timeout : 5000, // Time in milliseconds</p>
<p>    // The LOAD function will be called on a successful response.<br />
    load : function(response, ioArgs) {<br />
    dojo.byId(domName).innerHTML = response;<br />
    return response;<br />
},</p>
<p>    // The ERROR function will be called in an error case.<br />
    error : function(response, ioArgs) {<br />
    console.error(&#8220;HTTP status code: &#8220;, ioArgs.xhr.status);<br />
    return response;<br />
    }<br />
});<br />
}</p>
<p>then just use call<br />
my.loadPage(&#8220;#brandDiv&#8221;, url2)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/15 queries in 0.011 seconds using disk: basic
Object Caching 303/311 objects using disk: basic

Served from: www.digitalsanctuary.com @ 2012-02-08 12:22:05 -->
