Forum: Ruby on Rails Queueing page.hide / non effects

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
328f0bb678423fcea01ebe3b0edc74e6?d=identicon&s=25 Ben Johnson (benjohnson)
on 2007-06-18 23:24
How do I queue non effects in an effect queue? Example:

page.visual_effect(:fade, "content", {:queue => {:scope => "content",
:position => "end"}})"content")

I want"content") to happen after the visual effect completes.
Also, I already know about the :after_update callback, but I have a more
complex example in my app and the :after_update callback does not work
because I am not sure which effect is the last element in the queue.

Thanks for your help.
A2c85dc5ee81b12e3cc0a6522e8d079d?d=identicon&s=25 Chris Hall (au5lander)
on 2007-06-19 12:45
(Received via mailing list)
not sure if this would work winthin a rails helper, but give it a try.

page.visual_effect(:fade, "content", { :afterFinish => "function() {'content') }" })
This topic is locked and can not be replied to.