Forum: Ruby on Rails Strange Effect.Highlight behavior

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.
Lindsay B. (Guest)
on 2006-02-17 16:25
I have the following code in my template:

<div id="message1">
<%= link_to_remote ("Delete", :update => "contents", :url => { :action
=> :delete, :id => }, :before =>
"'message_spinner')", :success =>
"Element.hide('message_spinner'); new Effect.Highlight('message1')") %>

When 'Delete' is clicked, the spinner is switched on then off as
expected, but the highlight effect doesn't show. I'm expecting the
entire line to flash yellow - just like the 'Click!' link in this
example from

Interestingly, if I change "new Effect.Highlight('message1')" to "new
Effect.Highlight('section2')", where "section2" is a Div element
elsewhere on the page, then "section2" does flash yellow!

Tested in Safari, Camino and Firefox.

Any thoughts?

This topic is locked and can not be replied to.