How do i pass the value selected from a drop down selection and then
extract it in rjs
<% select("what", "hello", @selection, {}, {:onchange
=>
remote_function(:url => "test", :my_variable => "hello
again") } ) %>
thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Mack Earnhardt
2008-May-05 15:33 UTC
Re: Passing values selected with onchange remote_function
Like this:
<%= observe_field :html_id_of_select, :url => {:action =>
"test" },
:with => ''variable_name'' %>
On Mon, May 5, 2008 at 9:22 AM, OhMyRuby
<rashantha-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> How do i pass the value selected from a drop down selection and then
> extract it in rjs
>
> <% select("what", "hello", @selection, {},
{:onchange =>
> remote_function(:url => "test", :my_variable =>
"hello again") } ) %>
>
> thanks.
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---