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
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 M. 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!
On 14 Jul 2008, at 17:13, Justin To wrote:
RJS Error:
ReferenceError: Effect is not defined
You’re probably not loading the scriptaculous javascript files (you’ll
need at least effects.js)
Fred
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs