Narasimha prasad Daruru
2008-Nov-06 04:32 UTC
How to handle change events of HTML controls using Rails Fra
Hi, 1. I require to populate dropdowns and textboxes based on the selection in one or the other dropdowns. I tried to create a dropdown ,radiobutton,checkbox. But I am not able to find the event handlers for the controls mentioned. (Like Onchange Event for dropdown list in .NET) . It will be of great help, if I get some solution. 2 Also I require help in embedding different views (Html) into a single main view with data from different tables (model) data. Thanks in Advance -- 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 -~----------~----~----~----~------~----~------~--~---
Hubert Łępicki
2008-Nov-08 09:23 UTC
Re: How to handle change events of HTML controls using Rails Fra
Hi, 1. You can easily do this with Prototype framework (http:// prototypejs.org/) which is distributed with Rails or with even standard javascript. 2. Not sure if I understand you but you might want to have look at partials (http://api.rubyonrails.com/classes/ActionView/ Partials.html). On 6 Lis, 05:32, Narasimha prasad Daruru <rails-mailing-l...@andreas- s.net> wrote:> Hi, > > 1. I require to populate dropdowns and textboxes based on the selection > in one or the other dropdowns. > I tried to create a dropdown ,radiobutton,checkbox. > But I am not able to find the event handlers for the controls > mentioned. > (Like Onchange Event for dropdown list in .NET) . > It will be of great help, if I get some solution. > > 2 Also I require help in embedding different views (Html) into a > single main view with data from different tables (model) data. > > Thanks in Advance > -- > Posted viahttp://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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---