<?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: 43,439 reasons to use append() correctly</title>
	<atom:link href="http://www.learningjquery.com/2009/03/43439-reasons-to-use-append-correctly/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learningjquery.com/2009/03/43439-reasons-to-use-append-correctly</link>
	<description>Tips, techniques, and tutorials for the jQuery JavaScript library</description>
	<lastBuildDate>Mon, 15 Mar 2010 11:26:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Lawrence Ong</title>
		<link>http://www.learningjquery.com/2009/03/43439-reasons-to-use-append-correctly/comment-page-1#comment-79660</link>
		<dc:creator>Lawrence Ong</dc:creator>
		<pubDate>Mon, 01 Feb 2010 21:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=542#comment-79660</guid>
		<description>Thanks for your tip -- it has helped me a lot. I do have a question though. 

First off, I use the jQuery library to design a calendar, the source of which is originally this: http://www.bytecyclist.com/projects/jmonthcalendar/. 

By applying the techiques you proposed, I&#039;ve been able to display about 500 calendar events in a minute. This was a great improvement since before this (and other enhancements) it would take somewhere in the vicinity of 5 minutes to complete the same task. 

That being said, however, I&#039;ve hit a wall. for more than a thousand events, it would take ages, and a couple of &quot;script timeout&quot; messages from IE. I do not have the option of switching to another browser as the framework is constrained.

I would like to display up to 5000 events, but not sure if this technology is even capable of doing this. 

Any suggestions would be appreciated.

thanks
Lawrence</description>
		<content:encoded><![CDATA[<p>Thanks for your tip &#8212; it has helped me a lot. I do have a question though. </p>
<p>First off, I use the jQuery library to design a calendar, the source of which is originally this: <a href="http://www.bytecyclist.com/projects/jmonthcalendar/" rel="nofollow">http://www.bytecyclist.com/projects/jmonthcalendar/</a>. </p>
<p>By applying the techiques you proposed, I&#8217;ve been able to display about 500 calendar events in a minute. This was a great improvement since before this (and other enhancements) it would take somewhere in the vicinity of 5 minutes to complete the same task. </p>
<p>That being said, however, I&#8217;ve hit a wall. for more than a thousand events, it would take ages, and a couple of &#8220;script timeout&#8221; messages from IE. I do not have the option of switching to another browser as the framework is constrained.</p>
<p>I would like to display up to 5000 events, but not sure if this technology is even capable of doing this. </p>
<p>Any suggestions would be appreciated.</p>
<p>thanks<br />
Lawrence</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adil</title>
		<link>http://www.learningjquery.com/2009/03/43439-reasons-to-use-append-correctly/comment-page-1#comment-79637</link>
		<dc:creator>adil</dc:creator>
		<pubDate>Tue, 26 Jan 2010 21:23:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=542#comment-79637</guid>
		<description>re-code:

function addFormField() {
	var id = document.getElementById(&quot;aj_adult&quot;).value;
	$(&quot;#DivAjAdult&quot;).append(&quot;Nom et prénom d&#039;adulte &quot; + id + &quot;&quot;);	
	id = (id - 1) + 2;
	document.getElementById(&quot;aj_adult&quot;).value = id;
}</description>
		<content:encoded><![CDATA[<p>re-code:</p>
<p>function addFormField() {<br />
	var id = document.getElementById(&#8220;aj_adult&#8221;).value;<br />
	$(&#8220;#DivAjAdult&#8221;).append(&#8220;Nom et prénom d&#8217;adulte &#8221; + id + &#8220;&#8221;);<br />
	id = (id &#8211; 1) + 2;<br />
	document.getElementById(&#8220;aj_adult&#8221;).value = id;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adil</title>
		<link>http://www.learningjquery.com/2009/03/43439-reasons-to-use-append-correctly/comment-page-1#comment-79636</link>
		<dc:creator>adil</dc:creator>
		<pubDate>Tue, 26 Jan 2010 21:21:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=542#comment-79636</guid>
		<description>please, 
i&#039;m a little stupid in jquery: 

i have a function with append , i want to know how to stop it, i have used it to creat input element into a div where id is &quot;DivAjAdult&quot;, and changing attr id and name from the value of an input where id is &quot;aj_adult&quot; but it doen&#039;t stop .. help

here is the code:

&lt;code&gt;function addFormField() {
var id = document.getElementById(&quot;aj_adult&quot;).value;
$(&quot;#DivAjAdult&quot;).append(&quot;Nom et prénom d&#039;adulte &quot; + id + &quot;&quot;);	
	id = (id - 1) + 2;
	document.getElementById(&quot;aj_adult&quot;).value = id;
}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>please,<br />
i&#8217;m a little stupid in jquery: </p>
<p>i have a function with append , i want to know how to stop it, i have used it to creat input element into a div where id is &#8220;DivAjAdult&#8221;, and changing attr id and name from the value of an input where id is &#8220;aj_adult&#8221; but it doen&#8217;t stop .. help</p>
<p>here is the code:</p>
<p><code>function addFormField() {<br />
var id = document.getElementById("aj_adult").value;<br />
$("#DivAjAdult").append("Nom et prénom d'adulte " + id + "");<br />
	id = (id - 1) + 2;<br />
	document.getElementById("aj_adult").value = id;<br />
}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agent Smith</title>
		<link>http://www.learningjquery.com/2009/03/43439-reasons-to-use-append-correctly/comment-page-1#comment-79560</link>
		<dc:creator>Agent Smith</dc:creator>
		<pubDate>Sun, 17 Jan 2010 18:57:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=542#comment-79560</guid>
		<description>Your article saved me a ton of time trying to trouble shoot an issue and possibly cut my would be code by half.  Awesome article.  Thanks.</description>
		<content:encoded><![CDATA[<p>Your article saved me a ton of time trying to trouble shoot an issue and possibly cut my would be code by half.  Awesome article.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arun</title>
		<link>http://www.learningjquery.com/2009/03/43439-reasons-to-use-append-correctly/comment-page-1#comment-79347</link>
		<dc:creator>Arun</dc:creator>
		<pubDate>Sat, 12 Dec 2009 18:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=542#comment-79347</guid>
		<description>GWT, which I&#039;m used for my final year project seems to use innerHtml exclusively.
So there must be a speed advantage.
(GWT says they provides cross browser compatible and most optimized code)

Any comments?
(I&#039;m just a newbie to JavaScript programming)</description>
		<content:encoded><![CDATA[<p>GWT, which I&#8217;m used for my final year project seems to use innerHtml exclusively.<br />
So there must be a speed advantage.<br />
(GWT says they provides cross browser compatible and most optimized code)</p>
<p>Any comments?<br />
(I&#8217;m just a newbie to JavaScript programming)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas Grabner</title>
		<link>http://www.learningjquery.com/2009/03/43439-reasons-to-use-append-correctly/comment-page-1#comment-79145</link>
		<dc:creator>Andreas Grabner</dc:creator>
		<pubDate>Tue, 03 Nov 2009 12:23:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=542#comment-79145</guid>
		<description>You can use &lt;a href=&quot;http://ajax.dynatrace.com&quot; rel=&quot;nofollow&quot;&gt;dynaTrace AJAX Edition&lt;/a&gt; for accurate profiling in IE6, 7 and 8.</description>
		<content:encoded><![CDATA[<p>You can use <a href="http://ajax.dynatrace.com" rel="nofollow">dynaTrace AJAX Edition</a> for accurate profiling in IE6, 7 and 8.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Powell</title>
		<link>http://www.learningjquery.com/2009/03/43439-reasons-to-use-append-correctly/comment-page-1#comment-79128</link>
		<dc:creator>Josh Powell</dc:creator>
		<pubDate>Wed, 28 Oct 2009 14:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=542#comment-79128</guid>
		<description>Good question.. I was surprised no one ever asked that, especially after it changed.  It was the number of milliseconds between the fastest method and the slowest, but that changed after writing the article and faster methods were discovered.</description>
		<content:encoded><![CDATA[<p>Good question.. I was surprised no one ever asked that, especially after it changed.  It was the number of milliseconds between the fastest method and the slowest, but that changed after writing the article and faster methods were discovered.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: valugi</title>
		<link>http://www.learningjquery.com/2009/03/43439-reasons-to-use-append-correctly/comment-page-1#comment-79126</link>
		<dc:creator>valugi</dc:creator>
		<pubDate>Wed, 28 Oct 2009 11:20:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=542#comment-79126</guid>
		<description>why &lt;strong&gt;43439&lt;/strong&gt;?</description>
		<content:encoded><![CDATA[<p>why <strong>43439</strong>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Powell</title>
		<link>http://www.learningjquery.com/2009/03/43439-reasons-to-use-append-correctly/comment-page-1#comment-79082</link>
		<dc:creator>Josh Powell</dc:creator>
		<pubDate>Wed, 21 Oct 2009 17:35:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=542#comment-79082</guid>
		<description>I primarily use

var start = new Date();
//code to be profiled
var time = new Date() - start;

Now, there is talk from John Resig about how some versions of IE measures small amounts of time inaccurately, so this is not completely reliable for testing code cross browser, however the stats for IE vs. IE are still relevant.

The second method I&#039;ve used for profiling code is Firebug.  There is a &quot;profile&quot; button that moves around based on what version of firebug you are using.</description>
		<content:encoded><![CDATA[<p>I primarily use</p>
<p>var start = new Date();<br />
//code to be profiled<br />
var time = new Date() &#8211; start;</p>
<p>Now, there is talk from John Resig about how some versions of IE measures small amounts of time inaccurately, so this is not completely reliable for testing code cross browser, however the stats for IE vs. IE are still relevant.</p>
<p>The second method I&#8217;ve used for profiling code is Firebug.  There is a &#8220;profile&#8221; button that moves around based on what version of firebug you are using.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: janetsmith</title>
		<link>http://www.learningjquery.com/2009/03/43439-reasons-to-use-append-correctly/comment-page-1#comment-79079</link>
		<dc:creator>janetsmith</dc:creator>
		<pubDate>Wed, 21 Oct 2009 11:26:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/?p=542#comment-79079</guid>
		<description>This is an off topic question:

How do you profile the javascript performance? Especially profiling the performance on different browsers.

Thanks.</description>
		<content:encoded><![CDATA[<p>This is an off topic question:</p>
<p>How do you profile the javascript performance? Especially profiling the performance on different browsers.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
