|
List Info
Thread: dependent drop downs
|
|
| dependent drop downs |

|
2006-09-07 10:12:42 |
I asked about this before but perhaps didn't state clearly
what it was
I wanted.
I have a select box and based on the user's choice a second
select
would be populated that relates to the choice made in the
first box.
I've googled around and found little on dependent drop
downs for
rails. Kind of surprises me since I'd think it would be a
more
common function. Can anyone point me in the direction ?
TIA
Stuart
--~--~---------~--~----~------------~-------~--~----~
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 googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---
|
|
| dependent drop downs |

|
2006-09-07 10:57:57 |
Just search back on this forum, there have been about 4 or 5
posts and
replies about this in in the past couple of weeks. I posted
one of the
replies so its deffinitely there.
regards
c
--
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 googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---
|
|
| dependent drop downs |

|
2006-09-07 12:36:45 |
Alright, I found the thread. It probably makes sense for me
at this
point to get familiar with Ajax, rjs and all in Rails,
before
attempting.
Stuart
On 9/7/06, Clare <rails-mailing-list andreas-s.net> wrote:
>
> Just search back on this forum, there have been about 4
or 5 posts and
> replies about this in in the past couple of weeks. I
posted one of the
> replies so its deffinitely there.
> regards
> c
>
>
>
>
>
> --
> 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 googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---
|
|
| dependent drop downs |

|
2006-09-07 13:16:45 |
As I'm reading through the AJAX stuff (in AWDWR) I'm
wondering about a
few things
If I have this one element in my form where when user picks
option
from another element is loaded - is this more of a
javascript coding ,
like "onclick" or something that could be done
with what's available
within Rails.
One idea is I'm having is to have that section of my form
as a partial
that will get triggered in the controller to update. This
make sense
?
Stuart
On 9/7/06, Dark Ambient <sambient gmail.com> wrote:
> Alright, I found the thread. It probably makes sense
for me at this
> point to get familiar with Ajax, rjs and all in Rails,
before
> attempting.
>
> Stuart
>
> On 9/7/06, Clare <rails-mailing-list andreas-s.net> wrote:
> >
> > Just search back on this forum, there have been
about 4 or 5 posts and
> > replies about this in in the past couple of weeks.
I posted one of the
> > replies so its deffinitely there.
> > regards
> > c
> >
> >
> >
> >
> >
> > --
> > 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 googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---
|
|
| dependent drop downs |

|
2006-09-07 14:01:31 |
|
On 07 Sep 2006, at 15:16, Dark Ambient wrote: As I'm reading through the AJAX stuff (in AWDWR) I'm wondering about a few things If I have this one element in my form where when user picks option from another element is loaded - is this more of a javascript coding , like "onclick" or something that could be done with what's available within Rails. One idea is I'm having is to have that section of my form as a partial that will get triggered in the controller to update. This make sense ?
It's quite easy do that with the prototype helpers. Just use an observe of some element that calls a method in your controller, which in its turn will update a div on your page with a partial. Or you could look at the UJS plugin, I found it most useful as your view is a lot cleaner than when using the built-in methods.
Best regards
Peter De Berdt
--~--~---------~--~----~------------~-------~--~----~
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 googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---
|
[1-5]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|