<?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: JQuery Ajax with Class Arrays</title>
	<atom:link href="http://elegantcode.com/2009/05/04/jquery-ajax-with-class-arrays/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com/2009/05/04/jquery-ajax-with-class-arrays/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=jquery-ajax-with-class-arrays</link>
	<description></description>
	<lastBuildDate>Sun, 12 Feb 2012 18:54:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: No</title>
		<link>http://elegantcode.com/2009/05/04/jquery-ajax-with-class-arrays/comment-page-1/#comment-64336</link>
		<dc:creator>No</dc:creator>
		<pubDate>Fri, 07 Oct 2011 11:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/05/04/jquery-ajax-with-class-arrays/#comment-64336</guid>
		<description>Thank yo0u!@!!!</description>
		<content:encoded><![CDATA[<p>Thank yo0u!@!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pepcoder</title>
		<link>http://elegantcode.com/2009/05/04/jquery-ajax-with-class-arrays/comment-page-1/#comment-63784</link>
		<dc:creator>Pepcoder</dc:creator>
		<pubDate>Wed, 13 Apr 2011 13:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/05/04/jquery-ajax-with-class-arrays/#comment-63784</guid>
		<description>This is an awesome article..But I have a query.Instead of Appending the result with the existing result set is there any way to bind the latest resultset .

function LoadCustomers(data) {
      //var tbody = $(&quot;#grdComments&quot;).html(&quot;&quot;);
      for (var i in data) {
          var customer = data[i];
         
         
          $(&quot;#grdComments&quot;).append(&quot;&quot; + customer.Comment + &quot;&quot;);
        //If I use the above code the existing result set is appended with the new one on evry button click. I want to remove the existing resultset and reassign with the fresh resultset which comes from the Webservice

      }
  }    

Please help me..Thanks a lot in advance
_pep</description>
		<content:encoded><![CDATA[<p>This is an awesome article..But I have a query.Instead of Appending the result with the existing result set is there any way to bind the latest resultset .</p>
<p>function LoadCustomers(data) {<br />
      //var tbody = $(&#8220;#grdComments&#8221;).html(&#8220;&#8221;);<br />
      for (var i in data) {<br />
          var customer = data[i];</p>
<p>          $(&#8220;#grdComments&#8221;).append(&#8220;&#8221; + customer.Comment + &#8220;&#8221;);<br />
        //If I use the above code the existing result set is appended with the new one on evry button click. I want to remove the existing resultset and reassign with the fresh resultset which comes from the Webservice</p>
<p>      }<br />
  }    </p>
<p>Please help me..Thanks a lot in advance<br />
_pep</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ZK@Web Marketing Blog</title>
		<link>http://elegantcode.com/2009/05/04/jquery-ajax-with-class-arrays/comment-page-1/#comment-47075</link>
		<dc:creator>ZK@Web Marketing Blog</dc:creator>
		<pubDate>Sun, 21 Jun 2009 04:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/05/04/jquery-ajax-with-class-arrays/#comment-47075</guid>
		<description>An alternative to Lightbox and its various clones, with the sole purpose of displaying images: One or more thumbnails point at the full resolution image, and instead of displaying that image on a new page, its displayed, above an overlay, on the current page.</description>
		<content:encoded><![CDATA[<p>An alternative to Lightbox and its various clones, with the sole purpose of displaying images: One or more thumbnails point at the full resolution image, and instead of displaying that image on a new page, its displayed, above an overlay, on the current page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Brandsma</title>
		<link>http://elegantcode.com/2009/05/04/jquery-ajax-with-class-arrays/comment-page-1/#comment-46138</link>
		<dc:creator>Chris Brandsma</dc:creator>
		<pubDate>Thu, 14 May 2009 19:21:19 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/05/04/jquery-ajax-with-class-arrays/#comment-46138</guid>
		<description>A good site to look at is QuicksMode.com for JavaScript performance.

You want to be careful how you do things, if you strings get to large you can also have performance issues.

But the general advice I&#039;ve seen is similar to what you are talking about.  Create one string and pass that to the append function once.

The more specific tip I&#039;ve seen tho, if you have a lot of text to work with, is to put the text into an array then join the array together later.

http://www.quirksmode.org/dom/innerhtml.html</description>
		<content:encoded><![CDATA[<p>A good site to look at is QuicksMode.com for JavaScript performance.</p>
<p>You want to be careful how you do things, if you strings get to large you can also have performance issues.</p>
<p>But the general advice I&#8217;ve seen is similar to what you are talking about.  Create one string and pass that to the append function once.</p>
<p>The more specific tip I&#8217;ve seen tho, if you have a lot of text to work with, is to put the text into an array then join the array together later.</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: Sam Vermillion</title>
		<link>http://elegantcode.com/2009/05/04/jquery-ajax-with-class-arrays/comment-page-1/#comment-46137</link>
		<dc:creator>Sam Vermillion</dc:creator>
		<pubDate>Thu, 14 May 2009 17:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/05/04/jquery-ajax-with-class-arrays/#comment-46137</guid>
		<description>Nice post.  Just wondering, would jQuery perform better if in the LoadCustomers function&#039;s for loop, the html string each time was concatenated to a function-level string, then the .append(html) could be called after the iteration is complete?</description>
		<content:encoded><![CDATA[<p>Nice post.  Just wondering, would jQuery perform better if in the LoadCustomers function&#8217;s for loop, the html string each time was concatenated to a function-level string, then the .append(html) could be called after the iteration is complete?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Martin</title>
		<link>http://elegantcode.com/2009/05/04/jquery-ajax-with-class-arrays/comment-page-1/#comment-45988</link>
		<dc:creator>Nick Martin</dc:creator>
		<pubDate>Wed, 06 May 2009 17:22:20 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/05/04/jquery-ajax-with-class-arrays/#comment-45988</guid>
		<description>Thanks for the post Chris. Very straight forward.</description>
		<content:encoded><![CDATA[<p>Thanks for the post Chris. Very straight forward.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dew Drop - May 5, 2009 &#124; Alvin Ashcraft's Morning Dew</title>
		<link>http://elegantcode.com/2009/05/04/jquery-ajax-with-class-arrays/comment-page-1/#comment-45933</link>
		<dc:creator>Dew Drop - May 5, 2009 &#124; Alvin Ashcraft's Morning Dew</dc:creator>
		<pubDate>Tue, 05 May 2009 13:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/05/04/jquery-ajax-with-class-arrays/#comment-45933</guid>
		<description>[...] JQuery Ajax with Class Arrays (Chris Brandsma) [...]</description>
		<content:encoded><![CDATA[<p>[...] JQuery Ajax with Class Arrays (Chris Brandsma) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don Demsak</title>
		<link>http://elegantcode.com/2009/05/04/jquery-ajax-with-class-arrays/comment-page-1/#comment-45931</link>
		<dc:creator>Don Demsak</dc:creator>
		<pubDate>Tue, 05 May 2009 12:31:03 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/05/04/jquery-ajax-with-class-arrays/#comment-45931</guid>
		<description>You mentioned Dave Ward, but have you seen Rick Strahl&#039;s JSON2 script and blog post, http://www.west-wind.com/weblog/posts/729630.aspx that adds the methods parseWithDate and dateStringToDate.  It is a better solution to the MS AJAX date issue.  Also, you will run into a similar problem if you use the TimeSpan struct in MS AJAX.  It also has a special serialization format.</description>
		<content:encoded><![CDATA[<p>You mentioned Dave Ward, but have you seen Rick Strahl&#8217;s JSON2 script and blog post, <a href="http://www.west-wind.com/weblog/posts/729630.aspx" rel="nofollow">http://www.west-wind.com/weblog/posts/729630.aspx</a> that adds the methods parseWithDate and dateStringToDate.  It is a better solution to the MS AJAX date issue.  Also, you will run into a similar problem if you use the TimeSpan struct in MS AJAX.  It also has a special serialization format.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

