[jQuery] Re: Wait until animation completed - callback?

2009-09-26 Thread ryan.j
Here is some code that more or less does what the OP wanted by intercepting the callback. It's just a proof of concept i found was vaguely interesting coming up with, so for god's sake don't actually use it for anything (it's bad coding and highly likely to break anyway!) http://jsbin.com/isugi

[jQuery] Re: Wait until animation completed - callback?

2009-09-26 Thread ryan.j
But he will still want to trigger the animation on mouseover of that second unspecified element at some point after initiating the previous animation, regardless of the existence of $('.slide_started') or just using the :animated selector. At that point he will be forced to throw in a timer of so

[jQuery] Re: Wait until animation completed - callback?

2009-09-25 Thread William Chang
I don't know how complex the user interface you're making, but if you're asking for a callback after completing the "slideToggle()" animation, then overload the method with a second argument which is the callback function. $('#51').slideToggle('fast, function() { // Do something after element

[jQuery] Re: Wait until animation completed - callback?

2009-09-25 Thread Merlin
The timeout sounds logical. I would like to try it, but somehow jquery does not know that function: http://docs.jquery.com/Special:Search?ns0=1&search=setTimeout&go= I am pretty new to jquery. Could you post some code that fits into this one: onmouseover="$('#51').slideToggle('fast');$('.subcateg

[jQuery] Re: Wait until animation completed - callback?

2009-09-25 Thread ryan.j
the problem with jquery animation effects is that you can easily chain effects on a single element, but unless you specify a timer of some description or utilise the callback, effects on different elements will execute simultaneously as you're finding. unfortunately you really aren't going to kno

[jQuery] Re: Wait until animation completed - callback?

2009-09-25 Thread ryan.j
the problem with jquery animation effects is that you can easily chain effects on a single element, but unless you specify a timer of some description or utilise the callback, effects on different elements will execute simultaneously as you're finding. unfortunately you really aren't going to kno

[jQuery] Re: Wait until animation completed - callback?

2009-09-25 Thread Merlin
does nobody have an idea? :-( On Sep 23, 5:13 pm, Merlin wrote: > Hi there, > > I am building huge list with subcategories in each category that fade > out once the mouse is placed over the category. It works great, BUT > the problem is, if your mouse goes down the list vertically and the > su