<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.encosia.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Comments for Encosia</title>
	
	<link>http://encosia.com</link>
	<description>ASP.NET and AJAX code, ideas, and examples.</description>
	<lastBuildDate>Thu, 02 Sep 2010 18:02:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.encosia.com/EncosiaComments" /><feedburner:info uri="encosiacomments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>EncosiaComments</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Comment on Using jQuery to directly call ASP.NET AJAX page methods by Dave Ward</title>
		<link>http://feeds.encosia.com/~r/EncosiaComments/~3/z3qwh1xyMtg/</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Thu, 02 Sep 2010 18:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=77#comment-39803</guid>
		<description>Both work the same way, in terms of security.  The page methods are basically just shorthand for ASMX's ScriptMethod.  Both approaches run through the HttpHandler that handles security, so you can use integrated or forms authentication just like you would with an ASPX page.</description>
		<content:encoded><![CDATA[<p>Both work the same way, in terms of security.  The page methods are basically just shorthand for ASMX&#8217;s ScriptMethod.  Both approaches run through the HttpHandler that handles security, so you can use integrated or forms authentication just like you would with an ASPX page.</p>
<img src="http://feeds.feedburner.com/~r/EncosiaComments/~4/z3qwh1xyMtg" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://encosia.com/2008/05/29/using-jquery-to-directly-call-aspnet-ajax-page-methods/#comment-39803</feedburner:origLink></item>
	<item>
		<title>Comment on Using jQuery to directly call ASP.NET AJAX page methods by San</title>
		<link>http://feeds.encosia.com/~r/EncosiaComments/~3/R3ofgx7Hg-U/</link>
		<dc:creator>San</dc:creator>
		<pubDate>Thu, 02 Sep 2010 17:40:15 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=77#comment-39802</guid>
		<description>Hi

What about security   page method vis a vis  asmx service.

Is page method more secure and will it work with windows integrated authentication  on IIS.

Please advise.
Thanks 

San</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>What about security   page method vis a vis  asmx service.</p>
<p>Is page method more secure and will it work with windows integrated authentication  on IIS.</p>
<p>Please advise.<br />
Thanks </p>
<p>San</p>
<img src="http://feeds.feedburner.com/~r/EncosiaComments/~4/R3ofgx7Hg-U" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://encosia.com/2008/05/29/using-jquery-to-directly-call-aspnet-ajax-page-methods/#comment-39802</feedburner:origLink></item>
	<item>
		<title>Comment on ASMX ScriptService mistake – Invalid JSON primitive by daryl</title>
		<link>http://feeds.encosia.com/~r/EncosiaComments/~3/kmw6-X2iCb8/</link>
		<dc:creator>daryl</dc:creator>
		<pubDate>Thu, 02 Sep 2010 15:07:49 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=998#comment-39801</guid>
		<description>Thanks Dave,

I changed it to using a POST and it worked.  I wasn't aware of the limitation of query string parameters for the GET and was hoping to use GET because my situation lends itself more to the idea of a GET rather than POST.  But nevertheless it's working now and I'm done being frustrated about it.  :)

Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks Dave,</p>
<p>I changed it to using a POST and it worked.  I wasn&#8217;t aware of the limitation of query string parameters for the GET and was hoping to use GET because my situation lends itself more to the idea of a GET rather than POST.  But nevertheless it&#8217;s working now and I&#8217;m done being frustrated about it.  :)</p>
<p>Thanks!</p>
<img src="http://feeds.feedburner.com/~r/EncosiaComments/~4/kmw6-X2iCb8" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://encosia.com/2010/05/31/asmx-scriptservice-mistake-invalid-json-primitive/#comment-39801</feedburner:origLink></item>
	<item>
		<title>Comment on Hear me talk jQuery and ASP.NET on the jQuery Podcast by Nice intro screencast: Learn jQuery with FireBug, jQuerify and SelectorGadget | Andrei Croitoriu</title>
		<link>http://feeds.encosia.com/~r/EncosiaComments/~3/z53hb6KhaJI/</link>
		<dc:creator>Nice intro screencast: Learn jQuery with FireBug, jQuerify and SelectorGadget | Andrei Croitoriu</dc:creator>
		<pubDate>Thu, 02 Sep 2010 07:41:01 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=1045#comment-39800</guid>
		<description>[...] proved to be useful once again and provided me a nice link to an article from Encosia: Hear me talk jQuery and ASP.NET on the jQuery Podcast. While listening to the podcast (very interesting and full of useful information) I found another [...]</description>
		<content:encoded><![CDATA[<p>[...] proved to be useful once again and provided me a nice link to an article from Encosia: Hear me talk jQuery and ASP.NET on the jQuery Podcast. While listening to the podcast (very interesting and full of useful information) I found another [...]</p>
<img src="http://feeds.feedburner.com/~r/EncosiaComments/~4/z53hb6KhaJI" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://encosia.com/2010/08/30/hear-me-talk-jquery-and-asp-net-on-the-jquery-podcast/#comment-39800</feedburner:origLink></item>
	<item>
		<title>Comment on Simplify calling ASP.NET AJAX services from jQuery by Rick Strahl</title>
		<link>http://feeds.encosia.com/~r/EncosiaComments/~3/W_RGDTluDqo/</link>
		<dc:creator>Rick Strahl</dc:creator>
		<pubDate>Thu, 02 Sep 2010 03:33:41 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=888#comment-39798</guid>
		<description>Yup that's pretty much what we can do for CUSTOM parsing that we control. (like a proxy for Web Services/PageMethods etc.). But that won't work for the generic jQuery case for calls $.getJSON() or $.ajax() calls that do have "json" set as the datatype.

Not critical, but would be nice if there was a solution for this. More info on this issue here on the jQuery forum:

http://forum.jquery.com/topic/datafilter-function-and-json-string-result-problems#14737000001336005</description>
		<content:encoded><![CDATA[<p>Yup that&#8217;s pretty much what we can do for CUSTOM parsing that we control. (like a proxy for Web Services/PageMethods etc.). But that won&#8217;t work for the generic jQuery case for calls $.getJSON() or $.ajax() calls that do have &#8220;json&#8221; set as the datatype.</p>
<p>Not critical, but would be nice if there was a solution for this. More info on this issue here on the jQuery forum:</p>
<p><a href="http://forum.jquery.com/topic/datafilter-function-and-json-string-result-problems#14737000001336005" rel="nofollow">http://forum.jquery.com/topic/datafilter-function-and-json-string-result-problems#14737000001336005</a></p>
<img src="http://feeds.feedburner.com/~r/EncosiaComments/~4/W_RGDTluDqo" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://encosia.com/2009/07/21/simplify-calling-asp-net-ajax-services-from-jquery/#comment-39798</feedburner:origLink></item>
	<item>
		<title>Comment on Simplify calling ASP.NET AJAX services from jQuery by Dave Ward</title>
		<link>http://feeds.encosia.com/~r/EncosiaComments/~3/2iOPTh7o0YY/</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Thu, 02 Sep 2010 02:59:23 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=888#comment-39796</guid>
		<description>Yeah, the changes in jQuery 1.4 complicate this a bit.

Setting $.ajax()'s dataType parameter to "text" (or anything) solves the issue of handling invalid JSON. Since that's just an arbitrary string that gets passed around, you can take it one step further and solve both problems fairly elegantly like this:

&lt;pre lang="javascript"&gt;$.ajaxSetup({
  dataFilter: function(data, type) {
    if (type === 'ScriptMethod') {
      // JSON.parse(), strip the .d, handle dates, etc.
    }
  }
});

$.ajax({
  // Pass our secret handshake in to the dataFilter.
  dataType: 'ScriptMethod',
  // Carry on with a normal $.ajax() call to a service method here.
});&lt;/pre&gt;

I haven't used that widely, but did implement it in one project (where I had a conflict with plugins, as you mention) with solid results.</description>
		<content:encoded><![CDATA[<p>Yeah, the changes in jQuery 1.4 complicate this a bit.</p>
<p>Setting $.ajax()&#8217;s dataType parameter to &#8220;text&#8221; (or anything) solves the issue of handling invalid JSON. Since that&#8217;s just an arbitrary string that gets passed around, you can take it one step further and solve both problems fairly elegantly like this:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$.<span style="color: #660066;">ajaxSetup</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
  dataFilter<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>data<span style="color: #339933;">,</span> type<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>type <span style="color: #339933;">===</span> <span style="color: #3366CC;">'ScriptMethod'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #006600; font-style: italic;">// JSON.parse(), strip the .d, handle dates, etc.</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
$.<span style="color: #660066;">ajax</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #006600; font-style: italic;">// Pass our secret handshake in to the dataFilter.</span>
  dataType<span style="color: #339933;">:</span> <span style="color: #3366CC;">'ScriptMethod'</span><span style="color: #339933;">,</span>
  <span style="color: #006600; font-style: italic;">// Carry on with a normal $.ajax() call to a service method here.</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>I haven&#8217;t used that widely, but did implement it in one project (where I had a conflict with plugins, as you mention) with solid results.</p>
<img src="http://feeds.feedburner.com/~r/EncosiaComments/~4/2iOPTh7o0YY" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://encosia.com/2009/07/21/simplify-calling-asp-net-ajax-services-from-jquery/#comment-39796</feedburner:origLink></item>
	<item>
		<title>Comment on Simplify calling ASP.NET AJAX services from jQuery by Rick Strahl</title>
		<link>http://feeds.encosia.com/~r/EncosiaComments/~3/lJ58RC_56dk/</link>
		<dc:creator>Rick Strahl</dc:creator>
		<pubDate>Thu, 02 Sep 2010 01:20:53 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=888#comment-39794</guid>
		<description>Another issue is that you probably would want to somehow filter the dataFilter function so that you're only doing this conversion for JSON responses. I use:
&lt;pre lang="javascript"&gt;
$.ajaxSetup({ dataFilter: function (jsonString, type) {
    if (type == "json") {
        // Use json library so we can fix up dates        
        var res = JSON.parseWithDate(jsonString);
        if (res &amp;&amp; res.hasOwnProperty("d"))
            res = res.d;
        this.dataType = "text";
        return res;
    }
    return jsonString;
}
});
&lt;/pre&gt;

Otherwise every AJAX call even if it returns script or text/html will encode into JSON which is definitely a problem if you use a global filter and if other plugins are used that might make their own internal AJAX callbacks to retrieve script or other support files.</description>
		<content:encoded><![CDATA[<p>Another issue is that you probably would want to somehow filter the dataFilter function so that you&#8217;re only doing this conversion for JSON responses. I use:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$.<span style="color: #660066;">ajaxSetup</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> dataFilter<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>jsonString<span style="color: #339933;">,</span> type<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>type <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;json&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #006600; font-style: italic;">// Use json library so we can fix up dates        </span>
        <span style="color: #003366; font-weight: bold;">var</span> res <span style="color: #339933;">=</span> JSON.<span style="color: #660066;">parseWithDate</span><span style="color: #009900;">&#40;</span>jsonString<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>res <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> res.<span style="color: #660066;">hasOwnProperty</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;d&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
            res <span style="color: #339933;">=</span> res.<span style="color: #660066;">d</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">dataType</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;text&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">return</span> res<span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000066; font-weight: bold;">return</span> jsonString<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Otherwise every AJAX call even if it returns script or text/html will encode into JSON which is definitely a problem if you use a global filter and if other plugins are used that might make their own internal AJAX callbacks to retrieve script or other support files.</p>
<img src="http://feeds.feedburner.com/~r/EncosiaComments/~4/lJ58RC_56dk" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://encosia.com/2009/07/21/simplify-calling-asp-net-ajax-services-from-jquery/#comment-39794</feedburner:origLink></item>
	<item>
		<title>Comment on Simplify calling ASP.NET AJAX services from jQuery by Rick Strahl</title>
		<link>http://feeds.encosia.com/~r/EncosiaComments/~3/DPF3gDZdv8U/</link>
		<dc:creator>Rick Strahl</dc:creator>
		<pubDate>Thu, 02 Sep 2010 01:15:04 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=888#comment-39793</guid>
		<description>Dave,

I think the dataFilter approach you show here has a serious issue if you are returning a string value result (or a date encoded as string). The problem is that jQuery parses the result from the dataFilter function again using JSON parsing (if the dataType="json"):

&lt;pre lang="javascript"&gt;
if ( s &amp;&amp; s.dataFilter ) {s
	data = s.dataFilter( data, type );
}

// The filter can actually parse the responsess
if ( typeof data === "string" ) {
	// Get the JavaScript object, if JSON is used.
	if ( type === "json" || !type &amp;&amp; ct.indexOf("json") &gt;= 0 ) {
		data = jQuery.parseJSON( data );
...
}
&lt;/pre&gt;

which means that any string result will fail with a parser error as it's effectively double parsed. 

Bummer cause there appears to be no workaround for this. Fixable if instead of type they'd use s.dataType so that the dataFilter function could change the type to "text".</description>
		<content:encoded><![CDATA[<p>Dave,</p>
<p>I think the dataFilter approach you show here has a serious issue if you are returning a string value result (or a date encoded as string). The problem is that jQuery parses the result from the dataFilter function again using JSON parsing (if the dataType=&#8221;json&#8221;):</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> s <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> s.<span style="color: #660066;">dataFilter</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>s
	data <span style="color: #339933;">=</span> s.<span style="color: #660066;">dataFilter</span><span style="color: #009900;">&#40;</span> data<span style="color: #339933;">,</span> type <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// The filter can actually parse the responsess</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000066; font-weight: bold;">typeof</span> data <span style="color: #339933;">===</span> <span style="color: #3366CC;">&quot;string&quot;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #006600; font-style: italic;">// Get the JavaScript object, if JSON is used.</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> type <span style="color: #339933;">===</span> <span style="color: #3366CC;">&quot;json&quot;</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span>type <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> ct.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;json&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;=</span> <span style="color: #CC0000;">0</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		data <span style="color: #339933;">=</span> jQuery.<span style="color: #660066;">parseJSON</span><span style="color: #009900;">&#40;</span> data <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
...
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>which means that any string result will fail with a parser error as it&#8217;s effectively double parsed. </p>
<p>Bummer cause there appears to be no workaround for this. Fixable if instead of type they&#8217;d use s.dataType so that the dataFilter function could change the type to &#8220;text&#8221;.</p>
<img src="http://feeds.feedburner.com/~r/EncosiaComments/~4/DPF3gDZdv8U" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://encosia.com/2009/07/21/simplify-calling-asp-net-ajax-services-from-jquery/#comment-39793</feedburner:origLink></item>
	<item>
		<title>Comment on Simplify calling ASP.NET AJAX services from jQuery by links for 2010-09-01 « dstelow notes…</title>
		<link>http://feeds.encosia.com/~r/EncosiaComments/~3/A1lXhSNsG6I/</link>
		<dc:creator>links for 2010-09-01 « dstelow notes…</dc:creator>
		<pubDate>Wed, 01 Sep 2010 23:02:23 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=888#comment-39792</guid>
		<description>[...] Simplify calling ASP.NET AJAX services from jQuery | Encosia In this post, I’ll show you how to use that consolidation feature, and exactly how I am now using that to more simply call ASP.NET AJAX services with jQuery. (tags: dev dotnet ajax jquery json wcf) [...]</description>
		<content:encoded><![CDATA[<p>[...] Simplify calling ASP.NET AJAX services from jQuery | Encosia In this post, I’ll show you how to use that consolidation feature, and exactly how I am now using that to more simply call ASP.NET AJAX services with jQuery. (tags: dev dotnet ajax jquery json wcf) [...]</p>
<img src="http://feeds.feedburner.com/~r/EncosiaComments/~4/A1lXhSNsG6I" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://encosia.com/2009/07/21/simplify-calling-asp-net-ajax-services-from-jquery/#comment-39792</feedburner:origLink></item>
	<item>
		<title>Comment on Announcing my new TekPub series, where you call the shots by Tweets that mention Announcing my new TekPub series, where you call the shots | Encosia -- Topsy.com</title>
		<link>http://feeds.encosia.com/~r/EncosiaComments/~3/lSqgQUOmHXQ/</link>
		<dc:creator>Tweets that mention Announcing my new TekPub series, where you call the shots | Encosia -- Topsy.com</dc:creator>
		<pubDate>Wed, 01 Sep 2010 16:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=1047#comment-39790</guid>
		<description>[...] This post was mentioned on Twitter by Craig Shoemaker, Dave Ward and TekPub, Ira Mellor. Ira Mellor said: RT @Encosia: Announcing my new TekPub series, where you call the shots: http://bit.ly/cfiqhs [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by Craig Shoemaker, Dave Ward and TekPub, Ira Mellor. Ira Mellor said: RT @Encosia: Announcing my new TekPub series, where you call the shots: <a href="http://bit.ly/cfiqhs" rel="nofollow">http://bit.ly/cfiqhs</a> [...]</p>
<img src="http://feeds.feedburner.com/~r/EncosiaComments/~4/lSqgQUOmHXQ" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://encosia.com/2010/09/01/announcing-my-new-tekpub-series-where-you-call-the-shots/#comment-39790</feedburner:origLink></item>
	<item>
		<title>Comment on 3 reasons why you should let Google host jQuery for you by Zachary</title>
		<link>http://feeds.encosia.com/~r/EncosiaComments/~3/OagyJUSqJBo/</link>
		<dc:creator>Zachary</dc:creator>
		<pubDate>Wed, 01 Sep 2010 14:06:37 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=740#comment-39789</guid>
		<description>Thanks for the handy article. :)</description>
		<content:encoded><![CDATA[<p>Thanks for the handy article. :)</p>
<img src="http://feeds.feedburner.com/~r/EncosiaComments/~4/OagyJUSqJBo" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://encosia.com/2008/12/10/3-reasons-why-you-should-let-google-host-jquery-for-you/#comment-39789</feedburner:origLink></item>
	<item>
		<title>Comment on Emulate ASP.NET validation groups with jQuery validation by Peter Fitzsimon</title>
		<link>http://feeds.encosia.com/~r/EncosiaComments/~3/plHXP3mJG-g/</link>
		<dc:creator>Peter Fitzsimon</dc:creator>
		<pubDate>Wed, 01 Sep 2010 02:46:32 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=948#comment-39786</guid>
		<description>Try this to ignore invalid but empty fields that are not required.
&lt;pre lang="javascript"&gt;
// Descending from that .validationGroup element, find any input
        //  elements within it, iterate over them, and run validation on 
        //  each of them.
        $group.find(':input').each(function (i, item) {
            if (!$(item).valid()) { //item is not valid            
                //if it is blank and not required, let it pass, otherwise it's invalid
                if (!($(item).val() == '' &amp;&amp; !$(item).hasClass('required'))) 
                {
                    isValid = false; //not blank, or blank and required
                }
            }
        });
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Try this to ignore invalid but empty fields that are not required.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Descending from that .validationGroup element, find any input</span>
        <span style="color: #006600; font-style: italic;">//  elements within it, iterate over them, and run validation on </span>
        <span style="color: #006600; font-style: italic;">//  each of them.</span>
        $group.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':input'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>i<span style="color: #339933;">,</span> <span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">valid</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">//item is not valid            </span>
                <span style="color: #006600; font-style: italic;">//if it is blank and not required, let it pass, otherwise it's invalid</span>
                <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">''</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #339933;">!</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hasClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'required'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> 
                <span style="color: #009900;">&#123;</span>
                    isValid <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//not blank, or blank and required</span>
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<img src="http://feeds.feedburner.com/~r/EncosiaComments/~4/plHXP3mJG-g" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://encosia.com/2009/11/24/asp-net-webforms-validation-groups-with-jquery-validation/#comment-39786</feedburner:origLink></item>
	<item>
		<title>Comment on ASMX ScriptService mistake – Invalid JSON primitive by Dave Ward</title>
		<link>http://feeds.encosia.com/~r/EncosiaComments/~3/pZDD73oqJXQ/</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Wed, 01 Sep 2010 02:09:28 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=998#comment-39785</guid>
		<description>I don't think you can pass parameters to ScriptService methods on the QueryString. If you can POST that request instead, it should work.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think you can pass parameters to ScriptService methods on the QueryString. If you can POST that request instead, it should work.</p>
<img src="http://feeds.feedburner.com/~r/EncosiaComments/~4/pZDD73oqJXQ" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://encosia.com/2010/05/31/asmx-scriptservice-mistake-invalid-json-primitive/#comment-39785</feedburner:origLink></item>
	<item>
		<title>Comment on ASMX ScriptService mistake – Invalid JSON primitive by daryl</title>
		<link>http://feeds.encosia.com/~r/EncosiaComments/~3/CKolOcHF1mo/</link>
		<dc:creator>daryl</dc:creator>
		<pubDate>Wed, 01 Sep 2010 01:32:20 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=998#comment-39784</guid>
		<description>Hi Dave,

This article was really helpful, but unfortunately my problem still isn't solved.  Using Fiddler my request header is:
GET /Services/GlobalFilters.asmx/GetTechnologists?{facilityIDs:"25,27",locationIDs:"",modalityIDs:"8"} HTTP/1.1

My asmx WebMetho header looks like this:
[WebMethod(true)]
        [ScriptMethod(UseHttpGet = true)]
        public IEnumerable GetTechnologists(string facilityIDs, string locationIDs, string modalityIDs)

Can you tell from that what might be going wrong?

Thanks so much!</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>This article was really helpful, but unfortunately my problem still isn&#8217;t solved.  Using Fiddler my request header is:<br />
GET /Services/GlobalFilters.asmx/GetTechnologists?{facilityIDs:&#8221;25,27&#8243;,locationIDs:&#8221;",modalityIDs:&#8221;8&#8243;} HTTP/1.1</p>
<p>My asmx WebMetho header looks like this:<br />
[WebMethod(true)]<br />
        [ScriptMethod(UseHttpGet = true)]<br />
        public IEnumerable GetTechnologists(string facilityIDs, string locationIDs, string modalityIDs)</p>
<p>Can you tell from that what might be going wrong?</p>
<p>Thanks so much!</p>
<img src="http://feeds.feedburner.com/~r/EncosiaComments/~4/CKolOcHF1mo" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://encosia.com/2010/05/31/asmx-scriptservice-mistake-invalid-json-primitive/#comment-39784</feedburner:origLink></item>
	<item>
		<title>Comment on Updated: See how I used Firebug to learn jQuery by Andrei</title>
		<link>http://feeds.encosia.com/~r/EncosiaComments/~3/CYx7PCS_l3s/</link>
		<dc:creator>Andrei</dc:creator>
		<pubDate>Tue, 31 Aug 2010 08:35:45 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=908#comment-39780</guid>
		<description>Excellent video! 
I've been using Firebug, but never really paid attention to the console... will start using it more often as your video proved it can be very useful!
Thank you for sharing!</description>
		<content:encoded><![CDATA[<p>Excellent video!<br />
I&#8217;ve been using Firebug, but never really paid attention to the console&#8230; will start using it more often as your video proved it can be very useful!<br />
Thank you for sharing!</p>
<img src="http://feeds.feedburner.com/~r/EncosiaComments/~4/CYx7PCS_l3s" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://encosia.com/2009/09/21/updated-see-how-i-used-firebug-to-learn-jquery/#comment-39780</feedburner:origLink></item>
</channel>
</rss><!-- Dynamic page generated in 0.157 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-09-02 13:10:04 -->
