RJS visual effect

def show_add_user
    if(request.xhr?)
      render :update do |rjs|
          rjs.replace_html :add_user_form, :partial => 'form'
        end
    else
      redirect_to_index
    end
  end

How do I add a visual effect to that?

Thanks

  render :update do |rjs|
      rjs\.replace\_html :add\_user\_form, :partial => 'form'

             rjs.visual_effect(:highlight, "id_of_whatever", :duration
=> 0.5)

Thorsten Mueller wrote:

� � � render :update do |rjs|
� � � � � rjs.replace_html :add_user_form, :partial => 'form'

             rjs.visual_effect(:highlight, "id_of_whatever", :duration
=> 0.5)

I'm getting this alert...

RJS Error:

ReferenceError: Effect is not defined

Thanks!

Thorsten Mueller wrote:

� � � render :update do |rjs|
� � � � � rjs.replace_html :add_user_form, :partial =>
'form'

            rjs.visual_effect(:highlight, "id_of_whatever", :duration
=> 0.5)

I'm getting this alert...

RJS Error:

ReferenceError: Effect is not defined

You're probably not loading the scriptaculous javascript files (you'll
need at least effects.js)

Fred