<?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: Never worry about ASP.NET AJAX&#8217;s .d again</title>
	<atom:link href="http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/feed/" rel="self" type="application/rss+xml" />
	<link>http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/</link>
	<description>ASP.NET and AJAX code, ideas, and examples.</description>
	<lastBuildDate>Fri, 12 Mar 2010 17:47:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Chris Haines</title>
		<link>http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/#comment-37834</link>
		<dc:creator>Chris Haines</dc:creator>
		<pubDate>Thu, 21 Jan 2010 17:13:17 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=883#comment-37834</guid>
		<description>Ah! Wish I&#039;d found that post 2 hours ago... :)</description>
		<content:encoded><![CDATA[<p>Ah! Wish I&#8217;d found that post 2 hours ago&#8230; :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/#comment-37833</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Thu, 21 Jan 2010 17:01:10 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=883#comment-37833</guid>
		<description>I haven&#039;t had a chance to experiment with it yet myself, but I think Adam is on the right track here: http://encosia.com/2009/07/21/simplify-calling-asp-net-ajax-services-from-jquery/#comment-37801</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t had a chance to experiment with it yet myself, but I think Adam is on the right track here: <a href="http://encosia.com/2009/07/21/simplify-calling-asp-net-ajax-services-from-jquery/#comment-37801" rel="nofollow">http://encosia.com/2009/07/21/simplify-calling-asp-net-ajax-services-from-jquery/#comment-37801</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Haines</title>
		<link>http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/#comment-37832</link>
		<dc:creator>Chris Haines</dc:creator>
		<pubDate>Thu, 21 Jan 2010 16:08:55 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=883#comment-37832</guid>
		<description>I think this fails now in Jquery 1.4 - just doing some testing, and think it fails if your server is returning a simple type, e.g. a string.... 

Seems that jquery 1.4 doesn&#039;t accept non-valid JSON now, and in returning msg.d from the data filter, jquery then rejects it.

any ideas?</description>
		<content:encoded><![CDATA[<p>I think this fails now in Jquery 1.4 &#8211; just doing some testing, and think it fails if your server is returning a simple type, e.g. a string&#8230;. </p>
<p>Seems that jquery 1.4 doesn&#8217;t accept non-valid JSON now, and in returning msg.d from the data filter, jquery then rejects it.</p>
<p>any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/#comment-37338</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Sat, 28 Nov 2009 17:48:52 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=883#comment-37338</guid>
		<description>I don&#039;t think the try/catch does anything there, does it?  msg.hasOwnProperty is safe to call, even if msg has no properties.

In the end, you&#039;re better served by &lt;a href=&quot;http://encosia.com/2009/07/21/simplify-calling-asp-net-ajax-services-from-jquery/&quot; rel=&quot;nofollow&quot;&gt;using dataFilter and doing this processing before the success handler&lt;/a&gt;.  That way you can both improve the JSON parsing and not have to repeat the &quot;.d&quot; checking for every $.ajax call you make.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think the try/catch does anything there, does it?  msg.hasOwnProperty is safe to call, even if msg has no properties.</p>
<p>In the end, you&#8217;re better served by <a href="http://encosia.com/2009/07/21/simplify-calling-asp-net-ajax-services-from-jquery/" rel="nofollow">using dataFilter and doing this processing before the success handler</a>.  That way you can both improve the JSON parsing and not have to repeat the &#8220;.d&#8221; checking for every $.ajax call you make.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Desmati</title>
		<link>http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/#comment-37334</link>
		<dc:creator>Desmati</dc:creator>
		<pubDate>Sat, 28 Nov 2009 14:28:09 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=883#comment-37334</guid>
		<description>There is a very simple way:

success: function(msg) {
   try {
      if (msg.hasOwnProperty(&quot;d&quot;))
         msg = msg.d;
   }catch(ex){}
   DoSomthing();
}</description>
		<content:encoded><![CDATA[<p>There is a very simple way:</p>
<p>success: function(msg) {<br />
   try {<br />
      if (msg.hasOwnProperty(&#8220;d&#8221;))<br />
         msg = msg.d;<br />
   }catch(ex){}<br />
   DoSomthing();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Creating a Webservice Proxy with jQuery &#171; Life of a geek and a part-time poet</title>
		<link>http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/#comment-36137</link>
		<dc:creator>Creating a Webservice Proxy with jQuery &#171; Life of a geek and a part-time poet</dc:creator>
		<pubDate>Tue, 11 Aug 2009 10:00:15 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=883#comment-36137</guid>
		<description>[...] Never worry about ASP.NET AJAX’s .d again [...]</description>
		<content:encoded><![CDATA[<p>[...] Never worry about ASP.NET AJAX’s .d again [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satheesh</title>
		<link>http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/#comment-36001</link>
		<dc:creator>Satheesh</dc:creator>
		<pubDate>Wed, 29 Jul 2009 03:21:24 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=883#comment-36001</guid>
		<description>Excellent post!! Thanks!</description>
		<content:encoded><![CDATA[<p>Excellent post!! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Kohnen</title>
		<link>http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/#comment-35824</link>
		<dc:creator>Justin Kohnen</dc:creator>
		<pubDate>Mon, 13 Jul 2009 15:06:13 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=883#comment-35824</guid>
		<description>Great post, thanks for all your hard work, and code samples.</description>
		<content:encoded><![CDATA[<p>Great post, thanks for all your hard work, and code samples.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Weekly Web Nuggets #70 : Code Monkey Labs</title>
		<link>http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/#comment-35742</link>
		<dc:creator>Weekly Web Nuggets #70 : Code Monkey Labs</dc:creator>
		<pubDate>Mon, 06 Jul 2009 03:03:13 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=883#comment-35742</guid>
		<description>[...] Never Worry About ASP.NET AJAX’s .d Again: Dave Ward shows an elegant way to call ASP.NET AJAX JSON services with jQuery. In other news, jQuery totally rocks! [...]</description>
		<content:encoded><![CDATA[<p>[...] Never Worry About ASP.NET AJAX’s .d Again: Dave Ward shows an elegant way to call ASP.NET AJAX JSON services with jQuery. In other news, jQuery totally rocks! [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deef</title>
		<link>http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/#comment-35730</link>
		<dc:creator>deef</dc:creator>
		<pubDate>Thu, 02 Jul 2009 09:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=883#comment-35730</guid>
		<description>Thanks so much for this post and all your other posts. I&#039;m looking forward to a follow-up post on this matter once jQuery 1.3.3 is released. Keep up the good work.</description>
		<content:encoded><![CDATA[<p>Thanks so much for this post and all your other posts. I&#8217;m looking forward to a follow-up post on this matter once jQuery 1.3.3 is released. Keep up the good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arjan&#8217;s World &#187; LINKBLOG for June 30, 2009</title>
		<link>http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/#comment-35722</link>
		<dc:creator>Arjan&#8217;s World &#187; LINKBLOG for June 30, 2009</dc:creator>
		<pubDate>Tue, 30 Jun 2009 20:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=883#comment-35722</guid>
		<description>[...] Never worry about ASP.NET AJAX’s .d again - Dave Ward What&#8217;s that .d yu ask? &#8216; By encapsulating the JSON response within a parent object, the framework helps protect against a particularly nasty XSS vulnerability &#8216; [...]</description>
		<content:encoded><![CDATA[<p>[...] Never worry about ASP.NET AJAX’s .d again &#8211; Dave Ward What&#8217;s that .d yu ask? &#8216; By encapsulating the JSON response within a parent object, the framework helps protect against a particularly nasty XSS vulnerability &#8216; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DotNetBurner - ASP.net Ajax</title>
		<link>http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/#comment-35719</link>
		<dc:creator>DotNetBurner - ASP.net Ajax</dc:creator>
		<pubDate>Tue, 30 Jun 2009 11:34:52 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=883#comment-35719</guid>
		<description>&lt;strong&gt;Never worry about ASP.NET AJAX’s .d again &#124; Encosia...&lt;/strong&gt;

DotNetBurner - burning hot .net content...</description>
		<content:encoded><![CDATA[<p><strong>Never worry about ASP.NET AJAX’s .d again | Encosia&#8230;</strong></p>
<p>DotNetBurner &#8211; burning hot .net content&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reflective Perspective - Chris Alcock &#187; The Morning Brew #379</title>
		<link>http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/#comment-35717</link>
		<dc:creator>Reflective Perspective - Chris Alcock &#187; The Morning Brew #379</dc:creator>
		<pubDate>Tue, 30 Jun 2009 07:57:28 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=883#comment-35717</guid>
		<description>[...] Never worry about ASP.NET AJAX&#8217;;s .d again - Dave Ward looks at insulating yourself and your code from the problems with JSON from different versions of the ASP.NET framework [...]</description>
		<content:encoded><![CDATA[<p>[...] Never worry about ASP.NET AJAX&#8217;;s .d again &#8211; Dave Ward looks at insulating yourself and your code from the problems with JSON from different versions of the ASP.NET framework [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krishna Chaitanya</title>
		<link>http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/#comment-35716</link>
		<dc:creator>Krishna Chaitanya</dc:creator>
		<pubDate>Tue, 30 Jun 2009 05:45:27 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=883#comment-35716</guid>
		<description>Hi Dave,
I wonder how you know people&#039;s pulse! Whenever I get stuck at some problem, you come up with a solution for the same problem as if I asked you :) 

It was very incidental that I got stuck with same problem now as I am using jqGrid plugin (which you suggested in mail). I&#039;ve blogged about it &lt;a href=&quot;http://www.novogeek.com/post/2009/06/30/Customizing-jQuery-plugins-for-d-parameter-in-NET-35-JSON-response.aspx&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.
Thank you for the article:)</description>
		<content:encoded><![CDATA[<p>Hi Dave,<br />
I wonder how you know people&#8217;s pulse! Whenever I get stuck at some problem, you come up with a solution for the same problem as if I asked you :) </p>
<p>It was very incidental that I got stuck with same problem now as I am using jqGrid plugin (which you suggested in mail). I&#8217;ve blogged about it <a href="http://www.novogeek.com/post/2009/06/30/Customizing-jQuery-plugins-for-d-parameter-in-NET-35-JSON-response.aspx" rel="nofollow">here</a>.<br />
Thank you for the article:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/#comment-35715</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Tue, 30 Jun 2009 04:02:20 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=883#comment-35715</guid>
		<description>It&#039;ll change in jQuery 1.3.3, to about the same as what I&#039;m showing in my next post (using browser native JSON.parse if available).  At that point (my next post), doing it in the dataFilter will be &lt;em&gt;better&lt;/em&gt; than what jQuery&#039;s doing, not just copying it.

Either way, you don&#039;t have much choice if you want to transform the data independent of the success handler.  Running a transform in the dataFilter via $.ajaxSetup is a must when working with some jQuery plugins that don&#039;t otherwise play nice with &quot;ScriptServices&quot; and page methods.</description>
		<content:encoded><![CDATA[<p>It&#8217;ll change in jQuery 1.3.3, to about the same as what I&#8217;m showing in my next post (using browser native JSON.parse if available).  At that point (my next post), doing it in the dataFilter will be <em>better</em> than what jQuery&#8217;s doing, not just copying it.</p>
<p>Either way, you don&#8217;t have much choice if you want to transform the data independent of the success handler.  Running a transform in the dataFilter via $.ajaxSetup is a must when working with some jQuery plugins that don&#8217;t otherwise play nice with &#8220;ScriptServices&#8221; and page methods.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
