Displaying 1 result from an estimated 1 matches for "contact_icon_".
2010 Aug 16
8
Executing js.erb file with :format =>'js'
..._to image_tag("/images/icons/user_add.png"),
add_contact_path(:profile_id => profile.id, :url => request.url, :format
=> "js"), :title => "Add person to your contacts"%>
in my controller i have format.js
here''s my add_contact.js.erb:
$("#contact_icon_<%=params[:profile_id]%>").html("Contact Added")
Right now it just prints that code on the screen instead of executing
it. I''ve done this before with a form where I submitted with AJAX but
never with just a straight link before. Any thoughts? Thanks!
--
Posted via htt...