Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit
https://github.com/akelos/akelos/issues
Akelos PHP Framework Forum
Discussions
Categories
Akelos Programming
: Need help of "link_to_function"
Bottom of Page
1 to 2 of 2
CommentAuthor
sevendesk
Hello,
Please help me to convert this RoR script to akelos php, i dont know how to do it:
<%= link_to_function "Add More" do |page|
page.insert_html :bottom, :table_ajax, :partial => "user_skill", :object=>User.new
end %>
Thank you so much for your help.
Reinhart
CommentAuthor
sevendesk
MY ANSWER :
------------------
<%= link_to_function "Add More", "new Insertion.Bottom('table_choices','<div id=\'choice\' ><b>Enter Choice</b> : <input name=\'profile_question_list[detail_attributes][][detail]\' size=\'30\' type=\'text\' /><a href=\'#\' onclick=Element.up(this).remove(); > <b>Delete</b></a></div>')" %>
I wish i could get short way of this matter, but i could not get it yet, so that i use newbie way. if you have short way of my code using prototype_helper or combining it with javascript_helper, please tell me. Thank you..
Reinhart
1 to 2 of 2
Back to Discussions
Top of Page