Displaying 2 results from an estimated 2 matches for "args_id".
Did you mean:
args_in
2006 Jun 06
0
Get value from form using rjs, and problem with Safari
..."form"+row.to_s + "_" + col.to_s } ) } )
end
def to_question_item_form
id = params[:id]
remote_function( :url => { :action => :change_div,
:id => id } )
end
admin_controller:
def change_div
pos = args_id(params[:id])
html_options = { :class => "change" }
render :update do |page|
page[pos[:form]].replace( tag("div", "id" => pos[:form]) <<
text_area(pos[:row], pos[:col], {:cols => 20, :rows => 3}) <<
tag("di...
2006 Jun 06
1
Getting value of form using Ajax (and problems with Safari)
...:id => "form"+row.to_s + "_" + col.to_s } ) } )
end
def to_question_item_form
id = params[:id]
remote_function( :url => { :action => :change_div,
:id => id } )
end
admin_controller:
Code:
def change_div
pos = args_id(params[:id])
html_options = { :class => "change" }
render :update do |page|
page[pos[:form]].replace( tag("div", "id" => pos[:form]) <<
text_area(pos[:row], pos[:col], {:cols => 20, :rows => 3}) <<
tag("div&quo...