sreekanth.G
2008-Dec-22 07:58 UTC
how to use the observe_field to get more than one field?
Hi, I have two selctdropdown boxes name like "resolution" and "codecname". Now i am able to get the single field value either from resolution or codecformat select box. ex: observe_field ''resolution'' or observe_field ''codecforamt'' is there any way to get the two fields in to the observe_field method ? Can anyone give me suggestionfs or ideas on this? thanks Srikanth --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hassan Schroeder
2008-Dec-23 03:22 UTC
Re: how to use the observe_field to get more than one field?
On Sun, Dec 21, 2008 at 11:58 PM, sreekanth. G <gsirikanth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have two selctdropdown boxes name like "resolution" and "codecname". > > Now i am able to get the single field value either from resolution or > codecformat select box.> is there any way to get the two fields in to the observe_field method ?Have you read the docs for the :with option? Seems like it should be just what you need: "A JavaScript expression specifying the parameters for the XMLHttpRequest..." -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Robert Walker
2008-Dec-23 12:49 UTC
Re: how to use the observe_field to get more than one field?
sreekanth.G wrote:> Hi, > > I have two selctdropdown boxes name like "resolution" and "codecname". > > Now i am able to get the single field value either from resolution or > codecformat select box. > ex: > observe_field ''resolution'' > or > observe_field ''codecforamt'' > > is there any way to get the two fields in to the observe_field method ?Have you looked at the observe_form method. I think you use this if you want to observe multiple fields in a form. I could be wrong, but at least take a look at it. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---