Forum: Ruby on Rails RE: Ajaxing two drop down lists

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
337cdd270761e0e6f4356de45b04d388?d=identicon&s=25 jviney (Guest)
on 2005-12-01 08:45
(Received via mailing list)
The simplest thing is to inspect the autocomplete widgets available at
script.aculo.us and adapt them for what you need.

I guess you'd have the second dropdown disabled until a company was
selected. So attach an onComplete handler to your first dropdown which
enables and configures the second dropdown to get employees for only the
selected company (or something like that, there are many variations).

I've adapted my own version of the script.aculo.us Ajax.Autocompleter
recently, and it is a very good starting point for constructing your
own.

http://demo.script.aculo.us/ajax/autocompleter

Cheers,
Jonathan
This topic is locked and can not be replied to.