Re: Alternative to nested form tags

Mark Reginald James
2005-12-17T02:58:59Z

jennyw wrote:
> You can''t nest HTML forms, so I was wondering ...
>
> I have an HTML form, and I have one element where I want to use Ajax
> inside the form (e.g., a pop-up that contains a search box when there
> are too many items for a selection list) ... how would I accomplish
> that?  If I could use nested form tags, I could put a small, one-field
> search form inside the larger form.

submit_to_remote has a :submit option that allows you to send an
AJAX request without a form. It will post the values of named
entities located within a specified branch of the DOM.

--
We develop, watch us RoR, in numbers too big to ignore.