<?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: Improving jQuery’s JSON performance and security</title>
	<atom:link href="http://encosia.com/2009/07/07/improving-jquery-json-performance-and-security/feed/" rel="self" type="application/rss+xml" />
	<link>http://encosia.com/2009/07/07/improving-jquery-json-performance-and-security/</link>
	<description>ASP.NET and AJAX code, ideas, and examples.</description>
	<lastBuildDate>Sun, 14 Mar 2010 13:33:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2009/07/07/improving-jquery-json-performance-and-security/#comment-36722</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Mon, 12 Oct 2009 13:00:08 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=886#comment-36722</guid>
		<description>It is safe, as long as you secure any services that are sensitive.  You can use .NET authorization on ASMX the same as you would on ASPX.

As long as you don&#039;t trust the client too much, a user finding the service&#039;s URL isn&#039;t any more dangerous than them knowing the ASPX page&#039;s URL.

For example, if you were building an AJAX shopping cart, you shouldn&#039;t ever accept a price from the client-side.  Instead, you should always accept a product ID and retrieve its price from a secure, server-side data store (probably a database).  That way, even if the user does find the service URL and figure out how to manually POST to it, the &quot;worst&quot; they can do is add legitimate items to their cart at full price.</description>
		<content:encoded><![CDATA[<p>It is safe, as long as you secure any services that are sensitive.  You can use .NET authorization on ASMX the same as you would on ASPX.</p>
<p>As long as you don&#8217;t trust the client too much, a user finding the service&#8217;s URL isn&#8217;t any more dangerous than them knowing the ASPX page&#8217;s URL.</p>
<p>For example, if you were building an AJAX shopping cart, you shouldn&#8217;t ever accept a price from the client-side.  Instead, you should always accept a product ID and retrieve its price from a secure, server-side data store (probably a database).  That way, even if the user does find the service URL and figure out how to manually POST to it, the &#8220;worst&#8221; they can do is add legitimate items to their cart at full price.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://encosia.com/2009/07/07/improving-jquery-json-performance-and-security/#comment-36648</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 07 Oct 2009 01:38:24 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=886#comment-36648</guid>
		<description>Hi, I have seen a lot of demos using Json to call WebServices, but it&#039;s safe? I mean if you can see the code behind, you easily can see where is the WebServices Located. There is any way to encript the WebServices URL?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi, I have seen a lot of demos using Json to call WebServices, but it&#8217;s safe? I mean if you can see the code behind, you easily can see where is the WebServices Located. There is any way to encript the WebServices URL?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#187; Improving jQuery’s JSON performance and security &#124; Encosia - Yee Torrents News 4</title>
		<link>http://encosia.com/2009/07/07/improving-jquery-json-performance-and-security/#comment-36535</link>
		<dc:creator>&#187; Improving jQuery’s JSON performance and security &#124; Encosia - Yee Torrents News 4</dc:creator>
		<pubDate>Thu, 24 Sep 2009 07:53:35 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=886#comment-36535</guid>
		<description>[...] Source:Improving jQuery’s JSON performance and security &#124; Encosia [...]</description>
		<content:encoded><![CDATA[<p>[...] Source:Improving jQuery’s JSON performance and security | Encosia [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2009/07/07/improving-jquery-json-performance-and-security/#comment-36414</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Thu, 10 Sep 2009 04:26:09 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=886#comment-36414</guid>
		<description>If you set a dataFilter in $.ajaxSetup, it will apply to those shortcut methods.  See this post for an example of doing that:  http://encosia.com/2009/07/21/simplify-calling-asp-net-ajax-services-from-jquery/</description>
		<content:encoded><![CDATA[<p>If you set a dataFilter in $.ajaxSetup, it will apply to those shortcut methods.  See this post for an example of doing that:  <a href="http://encosia.com/2009/07/21/simplify-calling-asp-net-ajax-services-from-jquery/" rel="nofollow">http://encosia.com/2009/07/21/simplify-calling-asp-net-ajax-services-from-jquery/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chas Sforza</title>
		<link>http://encosia.com/2009/07/07/improving-jquery-json-performance-and-security/#comment-36413</link>
		<dc:creator>Chas Sforza</dc:creator>
		<pubDate>Wed, 09 Sep 2009 23:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=886#comment-36413</guid>
		<description>Well presented! Thanks!

Any way to apply this sort of filter when using get() or getJSON()?

Thanks again!

Chas</description>
		<content:encoded><![CDATA[<p>Well presented! Thanks!</p>
<p>Any way to apply this sort of filter when using get() or getJSON()?</p>
<p>Thanks again!</p>
<p>Chas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://encosia.com/2009/07/07/improving-jquery-json-performance-and-security/#comment-36154</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Tue, 11 Aug 2009 22:31:28 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=886#comment-36154</guid>
		<description>Safari 4.0.3 supports native JSON</description>
		<content:encoded><![CDATA[<p>Safari 4.0.3 supports native JSON</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flym</title>
		<link>http://encosia.com/2009/07/07/improving-jquery-json-performance-and-security/#comment-36084</link>
		<dc:creator>flym</dc:creator>
		<pubDate>Fri, 07 Aug 2009 06:34:18 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=886#comment-36084</guid>
		<description>I find it in www.json.com/json2.js
but I think I won&#039;t use it if I must import one more js file,unless the browser help to do.</description>
		<content:encoded><![CDATA[<p>I find it in <a href="http://www.json.com/json2.js" rel="nofollow">http://www.json.com/json2.js</a><br />
but I think I won&#8217;t use it if I must import one more js file,unless the browser help to do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flym</title>
		<link>http://encosia.com/2009/07/07/improving-jquery-json-performance-and-security/#comment-36083</link>
		<dc:creator>flym</dc:creator>
		<pubDate>Fri, 07 Aug 2009 06:28:21 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=886#comment-36083</guid>
		<description>I find my browser has not support it now,may wait for a while.
btw:The most time,the server must keep the json returned sefely to be used.</description>
		<content:encoded><![CDATA[<p>I find my browser has not support it now,may wait for a while.<br />
btw:The most time,the server must keep the json returned sefely to be used.</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/07/07/improving-jquery-json-performance-and-security/#comment-36027</link>
		<dc:creator>Creating a Webservice Proxy with jQuery &#171; Life of a geek and a part-time poet</dc:creator>
		<pubDate>Sun, 02 Aug 2009 12:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=886#comment-36027</guid>
		<description>[...] Improving jQuery’s JSON performance and security [...]</description>
		<content:encoded><![CDATA[<p>[...] Improving jQuery’s JSON performance and security [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Techwave &#187; Blog Archive &#187; jQuery FTW (August 1)</title>
		<link>http://encosia.com/2009/07/07/improving-jquery-json-performance-and-security/#comment-36023</link>
		<dc:creator>Techwave &#187; Blog Archive &#187; jQuery FTW (August 1)</dc:creator>
		<pubDate>Sat, 01 Aug 2009 23:17:53 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=886#comment-36023</guid>
		<description>[...] Improving jQuery JSON Performance and Security - An interesting article about expanding jQuery to notice if the browser supports JSON parsing natively. [...]</description>
		<content:encoded><![CDATA[<p>[...] Improving jQuery JSON Performance and Security &#8211; An interesting article about expanding jQuery to notice if the browser supports JSON parsing natively. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://encosia.com/2009/07/07/improving-jquery-json-performance-and-security/#comment-35996</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Tue, 28 Jul 2009 21:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=886#comment-35996</guid>
		<description>Ah right ok. That&#039;s not a problem really.

Cheers Dave</description>
		<content:encoded><![CDATA[<p>Ah right ok. That&#8217;s not a problem really.</p>
<p>Cheers Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2009/07/07/improving-jquery-json-performance-and-security/#comment-35995</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Tue, 28 Jul 2009 21:12:28 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=886#comment-35995</guid>
		<description>You wouldn&#039;t need to test for its presence, but you would still need to use the dataFilter callback to force jQuery to use it.  Until 1.3.3, jQuery won&#039;t automatically use JSON.parse, even if it&#039;s present.</description>
		<content:encoded><![CDATA[<p>You wouldn&#8217;t need to test for its presence, but you would still need to use the dataFilter callback to force jQuery to use it.  Until 1.3.3, jQuery won&#8217;t automatically use JSON.parse, even if it&#8217;s present.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://encosia.com/2009/07/07/improving-jquery-json-performance-and-security/#comment-35994</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Tue, 28 Jul 2009 21:06:40 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=886#comment-35994</guid>
		<description>Yeah just been trying this out which is pretty cool.

So can I assume that if I include json2.js in my sites then I won&#039;t have to do the checking for JSON in my jquery webservice call which you talk about in another post?</description>
		<content:encoded><![CDATA[<p>Yeah just been trying this out which is pretty cool.</p>
<p>So can I assume that if I include json2.js in my sites then I won&#8217;t have to do the checking for JSON in my jquery webservice call which you talk about in another post?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2009/07/07/improving-jquery-json-performance-and-security/#comment-35993</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Tue, 28 Jul 2009 21:04:33 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=886#comment-35993</guid>
		<description>That&#039;s correct.  json2.js and the ECMA standard have identical APIs too, so parse and stringify work the same in both settings.</description>
		<content:encoded><![CDATA[<p>That&#8217;s correct.  json2.js and the ECMA standard have identical APIs too, so parse and stringify work the same in both settings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://encosia.com/2009/07/07/improving-jquery-json-performance-and-security/#comment-35992</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Tue, 28 Jul 2009 20:50:35 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=886#comment-35992</guid>
		<description>So does this mean that if I include json2.js in my page then if native JSON is present it will use it otherwise it will use the json2.js ?</description>
		<content:encoded><![CDATA[<p>So does this mean that if I include json2.js in my page then if native JSON is present it will use it otherwise it will use the json2.js ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
