hi, i had a code like this
def toggle_edit_photo id
page.toggle "#{id}_name", "#{id}_edit",
"#{id}_delete"
end
the code generate like this :
try {
["23_name", "23_edit",
"23_delete"].each(Element.toggle); <!-- problem
is here -->
}
catch (e) {
alert(''RJS error:\n\n'' + e.toString());
alert(''[\"23_name\", \"23_edit\",
\"23_delete\"].each(Element.toggle);'');
throw e
};
return false;
however this code is not working ( it show a $(elemment has no
properties) ) but when i switch to $("23_name", "23_edit",
"23_delete").invoke(''toogle''); (replace the line
above) it look ok.
my prototype version is 1.5.0_rc0.
any idea ?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---