# Rjs problems

**URL:** <https://www.ruby-forum.com/t/rjs-problems/91101>\
**Category:** Rails\
**Created:** [April 4, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/rjs-problems/91101 "2007-04-04T18:47:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/df788c/32.png) [@dgm](https://www.ruby-forum.com/u/dgm)\
**Post date:** [April 4, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/rjs-problems/91101/1 "2007-04-04T18:47:17Z")

</div>

im trying to have a rjs template update several elements… i want to  
fade out 3 or 4 elements, replace them, and then have them reappear, but  
its not updating correctly. Right now the transitions are choppy and  
don;t work to well, heres my code as of now…

[http://pastie.caboo.se/51676](http://pastie.caboo.se/51676)

im not sure the best way to queue actions and have them rendered  
properly, any help would be greatly appreciated

---

<div class="post-metadata">

**Author:** ![dgm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/df788c/32.png) [@dgm](https://www.ruby-forum.com/u/dgm)\
**Post date:** [April 4, 2007, 7:01pm UTC](https://www.ruby-forum.com/t/rjs-problems/91101/2 "2007-04-04T19:01:39Z")

</div>

When I was experimenting with such effects, I found that the only way to  
get  
even reasonable effect transitions is to split up when effects are done.  
For  
example, blind up and fade out elements before posting the AJAX call,  
then  
have the RJS do the effect code to redisplay elements.

Trying to get animations working together in the same RJS just wasn’t  
worth  
the effort, and it will most likely never be consistent across  
connections.

Jason

---

<div class="post-metadata">

**Author:** ![dgm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/df788c/32.png) [@dgm](https://www.ruby-forum.com/u/dgm)\
**Post date:** [April 4, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/rjs-problems/91101/3 "2007-04-04T19:11:06Z")

</div>

have a look at this post

maybe it helps

[http://blog.railsdevelopment.com/pages/effect/queue/](http://blog.railsdevelopment.com/pages/effect/queue/)
