Displaying 2 results from an estimated 2 matches for "country_area_select".
2006 Jun 15
0
return from controller not evaluating script
...>
<%= render :partial => ''country_area'' %>
</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:
$(...
2006 Jun 09
0
partials and rjs
...country", params], :order => "descr asc")
render :partial => ''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 i...