Re: [jQuery] How to block a function while another finishes? (and pause!)

2007-03-05 Thread Kim Johnson
Hi Karl, Indeed, I caught that when I was copying the line over :) Unfortunately, though, it doesn't seem to work. The div slides up correctly, but never slides back down. I attempted to tweak it by not chaining, combinations of the animate and pause function, just the pause function, just the an

Re: [jQuery] How to block a function while another finishes? (and pause!)

2007-03-03 Thread Karl Swedberg
On Mar 3, 2007, at 3:05 PM, Klaus Hartl wrote: Karl recently wrote about a neat trick to achieve the same without the pause plugin: http://www.learningjquery.com/2007/01/effect-delay-trick Just do this: target.children("div.middle").html(stuff).pause(2000, 'fx').animate({opacity: 1}, 2000).sli

Re: [jQuery] How to block a function while another finishes? (and pause!)

2007-03-03 Thread Klaus Hartl
Kim Johnson schrieb: > Thanks to both of you! :) this is exactly what I > needed. > > Question 2: is there a way to pause the slidedown from > happening? I notice there's a pause() plugin, I dl'ed > that and attempted to chain it such as: > > target.slideUp("slow", function() { > > target.c

Re: [jQuery] How to block a function while another finishes? (and pause!)

2007-03-03 Thread Kim Johnson
Thanks to both of you! :) this is exactly what I needed. Question 2: is there a way to pause the slidedown from happening? I notice there's a pause() plugin, I dl'ed that and attempted to chain it such as: target.slideUp("slow", function() { target.children("div.middle").html(stuff).pause(2