Hi everyone,
I''ve been trying to figure out this problem for a good while but
can''t
seem to do it on my own. I need to create a dropdown menu that when
the user changes the value it will trigger a remote_function. The
dropdown menu is populated for now by an array of words that I defined
in the controller called @frame_color[]. Here''s what I have so far...
<%= select_tag(:color, options_for_select(@frame_color,
params[:color]), :onchange => remote_function(:update =>
"middle_sub_right", :url => {:action =>
''print_change'', :passed_color
=> params[:color], :id => @prints, :photo => @photo}))%>
All I need is for the selected value in the dropdown menu is passed
to :passed_color when the remote_function is triggered but i''m not
sure where or how to get this value.
Any help would be greatly appreciated!
thanks,
James
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---