paulo@explicadores.net
2006-Feb-10 20:27 UTC
[Rails] Using two select elements (master - slave)
Hi, I am looking for an opinion. I need to have two select html elements in a form, the selection of the first element will determine the elements of the second select. I do not want to use AJAX, so I think I would like to add a onchange event in the first select, but due to my lack of experience in rails I am somewhat without ideas on the way of handling this "post back" event. Thank you for you sugestion, Paulo Abreu.
Peter Fitzgibbons
2006-Feb-10 20:50 UTC
[Rails] Using two select elements (master - slave)
On 2/10/06, paulo@explicadores.net <paulo@explicadores.net> wrote:> > Hi, I am looking for an opinion. > > I need to have two select html elements in a form, the selection of the > first > element will determine the elements of the second select. > > I do not want to use AJAX, so I think I would like to add a onchange event > in > the first select, but due to my lack of experience in rails I am somewhat > without ideas on the way of handling this "post back" event. > > Thank you for you sugestion, > > Paulo Abreu. > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >Why do you not want to use AJAX? -- ------------------------------ Forget the icing. Bake the Cake! - the epi-centered developer ------------------------------ Peter Fitzgibbons -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060210/46bf1bc3/attachment.html
paulo@explicadores.net
2006-Feb-11 00:39 UTC
[Rails] Using two select elements (master - slave)
Quoting Peter Fitzgibbons <peter.fitzgibbons@gmail.com>:> On 2/10/06, paulo@explicadores.net <paulo@explicadores.net> wrote: >> >> Hi, I am looking for an opinion. >> >> I need to have two select html elements in a form, the selection of the >> first >> element will determine the elements of the second select. >> >> I do not want to use AJAX, so I think I would like to add a onchange event >> in >> the first select, but due to my lack of experience in rails I am somewhat >> without ideas on the way of handling this "post back" event. >> >> Thank you for you sugestion, >> > > > Why do you not want to use AJAX? >I am just testing different ways for doing the same task. Paulo Abreu
Peter Fitzgibbons
2006-Feb-13 14:33 UTC
[Rails] Using two select elements (master - slave)
On 2/10/06, paulo@explicadores.net <paulo@explicadores.net> wrote:> > Quoting Peter Fitzgibbons <peter.fitzgibbons@gmail.com>: > > > On 2/10/06, paulo@explicadores.net <paulo@explicadores.net> wrote: > >> > >> Hi, I am looking for an opinion. > >> > >> I need to have two select html elements in a form, the selection of the > >> first > >> element will determine the elements of the second select. > >> > >> I do not want to use AJAX, so I think I would like to add a onchange > event > >> in > >> the first select, but due to my lack of experience in rails I am > somewhat > >> without ideas on the way of handling this "post back" event. > >> > >> Thank you for you sugestion, > >> > > > > > > Why do you not want to use AJAX? > > > > I am just testing different ways for doing the same task. > > Paulo Abreu > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >I have experienced the most success lately picking the least painful option first. In this case, AJAX was definitely less painful than handling an n-way get/post controller function. -- ------------------------------ Forget the icing. Bake the Cake! - the epi-centered developer ------------------------------ Peter Fitzgibbons -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060213/09b8f4b9/attachment.html