If you''ve not bought the Agile Web Development book or the new Rails
Recipes book, you really should. A lot of the questions you''re asking
are in there along with a lot of really important concepts.
You need to look into observe_field which monitors a form field for
changes and then updates an element (usually a div with an id) with the
results from an AJAX call.
Then you need an action that builds the second select box based on what
the observe_field sends in.
-----Original Message-----
From: rails-bounces@lists.rubyonrails.org
[mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Buntin, Seth -
KATE
Sent: Monday, February 13, 2006 3:57 PM
To: rails@lists.rubyonrails.org
Subject: [Rails] (no subject)
Here is my db setup:
focus
id
name
sub_focus
id
focus_id
name
I have a select menu for focus and want to fill another select menu for
sub_focus (with AJAX) depending on what the focus is can someone point
me in the right direction?
Thanks.
Seth Buntin
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060213/b9948c73/attachment.html