try setting a boolean to flag if animation is in progress and dont execute animation on repeated clicks if the boolean is set. Something like this...
Eg: var animating = false; $("button").click(function() { if(!animating) { animating = true; $(this).show("slow", function() { animating = false; }); } }); -GTG On 7/20/07, mmjaeger <[EMAIL PROTECTED]> wrote:
nobody able to answer this? I really like to know whether I'm doing something wrong here. sorry for bumping. On Jul 17, 5:43 pm, mmjaeger <[EMAIL PROTECTED]> wrote: > Hello, > > I've a link I'm using .show(slow) - it works fine unless I click > repeatedly fast on the link - re-clicking the link while the effect is > still running leads to weird results - is there a way to cancel the > running effect before applying the new one or what's the best way to > handle something like this. > > thank you in advance for your help.