Displaying 2 results from an estimated 2 matches for "country_area_info".
2006 Jun 15
0
return from controller not evaluating script
...</span>
<< partial _country_area.rhtml >>
<%= select :country_area, :id, @country_areas.collect {|c| [c.descr,
c.id]}, {:prompt => "-- Select Area --"},
{:name => "country_area_select", :onChange => "new
Ajax.Updater(''country_area_info'',
''/controller/admin/change_country_area/''+country_area.selectedIndex,
{asynchronous:true, evalScripts:true});" }
%>
--------
Here is the HTTP response I get back using FireBug:
$("country_area").replace(
"<select id=\"country_area_...
2006 Jun 09
0
partials and rjs
...l => ''country_area''
end
<-- my partial -->
<%= select :country_area, :id, @country_areas.collect {|c| [c.descr,
c.id]}, {:prompt => "-- Select Area --"},
{:name => "country_area_select", :onfiltered=> "new
Ajax.Updater(''country_area_info'',
''/controller/admin/change_country_area/''+country_area.selectedIndex,
{asynchronous:true, evalScripts:true});" }
%>
<-- form containing partial -->
<form>
<span id="country_area">
<%= render :partial => ''co...