Forms within forms

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.

Hi Shandy,

Shandy N. 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

Bill W. wrote:

Hi Shandy,

Shandy N. 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

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.

On 6/27/07, Shandy N. [email protected] wrote:

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.