I have been searching for a while now have not be able to find any type
of list of the prototype and effects functions available to rjs. Most of
what I have done has either come from simple examples found here and
there or guess work(mostly the latter). Here is the problem that I am
having
<% proj_div = "proj_div#{@project.id}" %>
<% proj_url = "/project/show_status/#{@project.id}" %>
<li><%= link_to_function("Edit", nil, :id => "edit_ref#{@project.id}")
do |page|
page.Ajax.Updater(proj_div, proj_url, {:asynchronous => true,
:evalScripts => true, :onComplete => "alert('it worked!');"})
end
%>
</li>
firefox error
selection source
<li><a href="#" id="edit_ref3484"
onclick="Ajax.Updater("proj_div3484",
"/project/show_status/3484", {evalScripts: true, asynchronous:
true, onComplete: "alert('it worked!');"});; return
false;">Edit</a>
I am not really sure what I am doing wrong. This is all guess work so I
may be way off. I know that I could just use link_to_remote but I plan
on doing much more there but it all depends on being able to use the
Ajax.Updater function. Any suggestions would be greatly appreciated