Simple question...I think. Can you use the helper methods to create form_remote_tag within one another? I have tried but everytime the page seems to become confused on which form is which. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Shandy, Shandy Nantz wrote:> Simple question...I think. > > Can you use the helper methods to create form_remote_tag > within one another? I have tried but everytime the page seems > to become confused on which form is which.No. The W3C spec forbids the nesting of forms. You can, however, have more than one form on a page. Depending on what you''re trying to accomplish, and as long as you''re using Ajax, this can work well. But you''ll have to figure out whether or not you''re going to allow use of the site by visitors who have JS disabled and, if so, how you''re going to provide equivalent functionality to them. hth, Bill --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Bill Walton wrote:> Hi Shandy, > > Shandy Nantz wrote: > >> Simple question...I think. >> >> Can you use the helper methods to create form_remote_tag >> within one another? I have tried but everytime the page seems >> to become confused on which form is which. > > No. The W3C spec forbids the nesting of forms. You can, however, have > more > than one form on a page. Depending on what you''re trying to accomplish, > and > as long as you''re using Ajax, this can work well. But you''ll have to > figure > out whether or not you''re going to allow use of the site by visitors who > have JS disabled and, if so, how you''re going to provide equivalent > functionality to them. > > hth, > BillThat would explain all the strange behavior that I have been having. Oh well, I''ll have to try something else. Thanks for you help. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 6/27/07, Shandy Nantz <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Bill Walton wrote: > > Hi Shandy, > > > > Shandy Nantz wrote: > > > >> Simple question...I think. > >> > >> Can you use the helper methods to create form_remote_tag > >> within one another? I have tried but everytime the page seems > >> to become confused on which form is which. > > > > No. The W3C spec forbids the nesting of forms. You can, however, have > > more > > than one form on a page. > > That would explain all the strange behavior that I have been having. Oh > well, I''ll have to try something else. Thanks for you help.If you are just trying to include fields from multiple objects in your form, have a look at the fields_for helper. http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#M000495 --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---