[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Retrieving data from a remote_function in a SELECT list

pjazzlg

4/25/2006 9:00:00 PM

I have the following code which successfully calls the correct method
in my Controller. One huge question.... how do I retrieve the value of
the selection once the method in the controller has been called?


<select name="selector" id="selector"
onchange="<%= remote_function(:update => 'flist',
:url => { :action => 'update_list'}) %>">
<% for x in @areas %>

<option value="<%= x.id %>" name="= x.area_name %> ">
<%= x.area_name %>
</option>
<% end %>

Many Thanks in advance