Forum: Ruby on Rails Strange Effect.Highlight behavior

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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 => message.id }, :before =>
"Element.show('message_spinner')", :success =>
"Element.hide('message_spinner'); new Effect.Highlight('message1')") %>
</div>

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 script.aculo.us:

http://wiki.script.aculo.us/scriptaculous/show/Eff...

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?

Lindsay
This topic is locked and can not be replied to.