How to handle change events of HTML controls using Rails Fra


#1

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


#2

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-