Forum: Ruby on Rails RJS problems

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.
4c2e3a5381459411d3ba43e7383505ed?d=identicon&s=25 Mark Studebaker (mstudebaker)
on 2007-03-04 02:00

I'm new to RJS (and rails) but it seems like this code should work, but

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

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 :highlight, 'invite'

Any help would be greatly appreciated.

- Mark
This topic is locked and can not be replied to.