Forum: Ruby on Rails DropDown onChange event update the table in view

Posted by Abhishek Thayyil (abhishekthayyil)
on 2013-01-30 18:42
Hi all,

I am fairly new to ROR and recently i created an application where i
have a combobox when on select the item from combobox i need the table
in the view to be updated based on the selection of the item selected in
the combobox. I need to do it using javascript , the whole data should
be retrived once and when the user selects the item from combo the table
data should get updated without goin to database again and again.
Any help would be deeply appreciated.
Regards,

AB
Posted by rails r. (rails_r)
on 2013-01-31 05:56
(Received via mailing list)
hi dude i'm also new to ror, two days back i struggled for the same 
problem
> but in my case when i select an item from dropdown in my view. based on the
> selection another dropdown in the view should be update automatically
> without touching database...

  go to this site,see demo and view page source

   http://phrogz.net/tmp/selpopulate.html

   this link wont provide the particular thing you have looking for but 
it
it was done using javascript,hope it may give u an idea to solve ur 
problem.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.