Displaying 2 results from an estimated 2 matches for "change_div".
Did you mean:
change_dir
2006 Jun 06
0
Get value from form using rjs, and problem with Safari
...uot;+row.to_s, "col"+col.to_s, %w{ Text Rating3
Rating4 ListItem GrantAccess},
{:include_blank => true},
{ :onchange => remote_function(
:url => {
:action => :change_div,
: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:
def change_di...
2006 Jun 06
1
Getting value of form using Ajax (and problems with Safari)
...>
helper:
Code:
module AdminHelper
def q_item(row, col)
return select("row"+row.to_s, "col"+col.to_s, %w{ Text Rating3
Rating4 ListItem GrantAccess},
{:include_blank => true},
{ :onchange => remote_function(
:url => { :action => :change_div,
: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...