# RJS problems

**URL:** <https://www.ruby-forum.com/t/rjs-problems/87571>\
**Category:** Rails\
**Created:** [March 4, 2007, 2:00am UTC](https://www.ruby-forum.com/t/rjs-problems/87571 "2007-03-04T02:00:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mslagell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Post date:** [March 4, 2007, 2:00am UTC](https://www.ruby-forum.com/t/rjs-problems/87571/1 "2007-03-04T02:00:23Z")

</div>

Hello…

I’m new to RJS (and rails) but it seems like this code should work, but  
doesn’t.

If I comment out the second statement, the ‘invite’ is updated on the  
page. I can see the generated javascript in the alert and it seems  
correct.

What am I doing wrong?

page[:invite].replace\_html @message  
page[:invite].visual\_effect :highlight

The funny thing is wehn I use this it works but I would like to chain  
together a highlight and a fade and can’t seem to do it with  
page.visual\_effect

page.visual\_effect :highlight, ‘invite’

Any help would be greatly appreciated.

- Mark
