# Queueing page.hide / non effects

**URL:** <https://www.ruby-forum.com/t/queueing-page-hide-non-effects/107186>\
**Category:** Rails\
**Created:** [June 18, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/queueing-page-hide-non-effects/107186 "2007-06-18T23:24:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Post date:** [June 18, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/queueing-page-hide-non-effects/107186/1 "2007-06-18T23:24:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![benjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Post date:** [June 19, 2007, 12:45pm UTC](https://www.ruby-forum.com/t/queueing-page-hide-non-effects/107186/2 "2007-06-19T12:45:14Z")

</div>

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’) }” })
