not sure if this would work winthin a rails helper, but give it a try.
page.visual_effect(:fade, "content", { :afterFinish =>
"function() {
Element.show(''content'') }" })
On 6/18/07, Ben Johnson
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> How do I queue non effects in an effect queue? Example:
>
> page.visual_effect(:fade, "content", {:queue => {:scope =>
"content",
> :position => "end"}})
> page.show("content")
>
>
> I want page.show("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.
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---