Displaying 2 results from an estimated 2 matches for "change_country_area".
2006 Jun 15
0
return from controller not evaluating script
...html >>
<%= 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_id\" name=\"country_area_select\"
onChange=\&qu...
2006 Jun 09
0
partials and rjs
...rtial -->
<%= 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 => ''country_area'' %>
</span>
<...