Topic: using visual_effect highlight without ajax call?

I am looking for a way to redirect a user to a page and to use visual_effect to highlight a div on that page - in this case I am redirecting after login and want to highlight the flash[:notice] that notifies the user they are now logged in.

How would I go about that - I've used effects with rjs, but never on their own...

Re: using visual_effect highlight without ajax call?

In some .rhtml file:

<p id="example">blah blah blah</p>

<%= update_page_tag do |page|
      page[:example].visual_effect :pulsate
    end
%>


http://api.rubyonrails.org/classes/Acti … ml#M000538



Or write some javascript that makes calls to the scriptaculous library.
http://wiki.script.aculo.us/scriptaculous/show/Usage

Vincent Woo Ruby on Rails Blog

Re: using visual_effect highlight without ajax call?

that worked great, thanks I didn't know about the update_page_tag!