Comments on: API: queue & dequeue http://jqueryfordesigners.com/api-queue-dequeue/ Tutorials and screencasts Thu, 22 Sep 2011 12:58:42 +0000 hourly 1 http://wordpress.org/?v=3.3.1 By: Pardeep http://jqueryfordesigners.com/api-queue-dequeue/comment-page-1/#comment-7137 Pardeep Fri, 25 Dec 2009 17:07:03 +0000 http://jqueryfordesigners.com/?p=135#comment-7137 <p>Your tutorials are AWESOME man, thanks so much for cutting to the chase.</p> Your tutorials are AWESOME man, thanks so much for cutting to the chase.

]]>
By: Remy http://jqueryfordesigners.com/api-queue-dequeue/comment-page-1/#comment-5149 Remy Tue, 14 Jul 2009 15:17:26 +0000 http://jqueryfordesigners.com/?p=135#comment-5149 <p>@Jolyon - I don't think I've seen what I've got planned around before, but feel free to point me in the right direction when it comes out.</p> <p>That said, the purpose of this site is to show designers and developers how to deconstruct ideas and put together something using jQuery. With that in mind, it's quite likely something will exist already when I'm running through the tutorial (see the Coda slide for a great example of this) - cheers :-)</p> @Jolyon – I don’t think I’ve seen what I’ve got planned around before, but feel free to point me in the right direction when it comes out.

That said, the purpose of this site is to show designers and developers how to deconstruct ideas and put together something using jQuery. With that in mind, it’s quite likely something will exist already when I’m running through the tutorial (see the Coda slide for a great example of this) – cheers :-)

]]>
By: Jolyon http://jqueryfordesigners.com/api-queue-dequeue/comment-page-1/#comment-5141 Jolyon Mon, 13 Jul 2009 22:12:34 +0000 http://jqueryfordesigners.com/?p=135#comment-5141 <p>I like your idea for your next J4Dcast. FYI, there are developers out there using jQuery to create some iPhone effect plugins, like this very recent plugin that simulates an iPhone style password input box: http://blog.decaf.de/2009/07/iphone-like-password-fields-using-jquery/</p> <p>Might be worth it to scout around before duplicating someone else's work, but still looking forward to what you can show us!</p> <p>Cheers - Jt</p> I like your idea for your next J4Dcast. FYI, there are developers out there using jQuery to create some iPhone effect plugins, like this very recent plugin that simulates an iPhone style password input box: http://blog.decaf.de/2009/07/iphone-like-password-fields-using-jquery/

Might be worth it to scout around before duplicating someone else’s work, but still looking forward to what you can show us!

Cheers – Jt

]]>
By: Remy http://jqueryfordesigners.com/api-queue-dequeue/comment-page-1/#comment-5128 Remy Sat, 11 Jul 2009 08:04:23 +0000 http://jqueryfordesigners.com/?p=135#comment-5128 <p>@Project2501 - so, in your example of:</p> <pre><code>$(selector).animA; someCustomCode(); $(selector).animC.animD...</code></pre> <p><em>While</em> <code>animA</code> is running, <code>someCustomCode()</code> will execute, because the animations are synchronous with other executed code. However, it won't start running <code>animC</code> because <em>that's</em> part of the animation FX queue.</p> <p>So, if I want something to run <em>after</em> the effect has finished, I can use <code>queue</code>. In that way it's similar to the callback method (except it's made part of the FX queue specifically).</p> <p>I hope that explains.</p> @Project2501 – so, in your example of:

$(selector).animA;
someCustomCode();
$(selector).animC.animD...

While animA is running, someCustomCode() will execute, because the animations are synchronous with other executed code. However, it won’t start running animC because that’s part of the animation FX queue.

So, if I want something to run after the effect has finished, I can use queue. In that way it’s similar to the callback method (except it’s made part of the FX queue specifically).

I hope that explains.

]]>
By: Project2501 http://jqueryfordesigners.com/api-queue-dequeue/comment-page-1/#comment-5123 Project2501 Sat, 11 Jul 2009 03:08:04 +0000 http://jqueryfordesigners.com/?p=135#comment-5123 <p>It was interesting to learn about queue and dequeue. I particularly liked how you demonstrated how easy it is to create a jQuery plugin (and to set a timer using jQuery). That said, I didn't quite understand the significance of using queue and dequeue; it seems that it is just meant to allow you to execute some other code in between a chain of animation commands (of which I don't know what significance that offers -- perhaps some performance saving by not requiring another selector, or simply a matter of semantics?).</p> <p>Couldn't I just as easily have achieved the same without using queue/dequeue by just breaking the chain of commands, directly inserting the code that I otherwise would specify in my custom queue function and creating a new chain of animation commands to be executed thereafter (as in '$(selector).animA.animB; someCustomCode; $(selector).animC.AnimD...';)?</p> <p>Thanks a lot for this effort and the excellent API browser! Your tutorials have been a great inspiration!</p> It was interesting to learn about queue and dequeue. I particularly liked how you demonstrated how easy it is to create a jQuery plugin (and to set a timer using jQuery). That said, I didn’t quite understand the significance of using queue and dequeue; it seems that it is just meant to allow you to execute some other code in between a chain of animation commands (of which I don’t know what significance that offers — perhaps some performance saving by not requiring another selector, or simply a matter of semantics?).

Couldn’t I just as easily have achieved the same without using queue/dequeue by just breaking the chain of commands, directly inserting the code that I otherwise would specify in my custom queue function and creating a new chain of animation commands to be executed thereafter (as in ‘$(selector).animA.animB; someCustomCode; $(selector).animC.AnimD…’;)?

Thanks a lot for this effort and the excellent API browser! Your tutorials have been a great inspiration!

]]>
By: webhostingsphere http://jqueryfordesigners.com/api-queue-dequeue/comment-page-1/#comment-5121 webhostingsphere Fri, 10 Jul 2009 17:46:11 +0000 http://jqueryfordesigners.com/?p=135#comment-5121 <p>Thats a great code! Well coded, very neat.</p> <p>Thanks for sharing</p> Thats a great code! Well coded, very neat.

Thanks for sharing

]]>
By: Mickaël H. http://jqueryfordesigners.com/api-queue-dequeue/comment-page-1/#comment-5119 Mickaël H. Fri, 10 Jul 2009 17:06:52 +0000 http://jqueryfordesigners.com/?p=135#comment-5119 <p>The last link is broken (You may wish to delete the last slash)</p> <p>In any case, thank you for this eloquent example.</p> The last link is broken (You may wish to delete the last slash)

In any case, thank you for this eloquent example.

]]>
By: Andrew Chalkley http://jqueryfordesigners.com/api-queue-dequeue/comment-page-1/#comment-5118 Andrew Chalkley Fri, 10 Jul 2009 13:43:23 +0000 http://jqueryfordesigners.com/?p=135#comment-5118 <p>Very nice.</p> <p>I don't think these screencasts are just for designers.</p> Very nice.

I don’t think these screencasts are just for designers.

]]>