I am searching for a solution on how to use ajax to submit multiple forms in one xhr.post call using dojo. The documentation mentioned below at the end of this page states:
Actually, the attribute "form:" can be set on any node, not just form nodes. If there are more than one form in your page enclosed within a div or span tag, you can submit all of these forms by setting "form:" to the surrounding div or span tag.
Setting the id of a div containing multiple forms as the "form" attribute in an xhr call does not produce the desired result:
xhr.post({
form: "idOfDivThatSurroundsManyForms",
...
});
This fails in domForm.formToObject, which actually requires a form node (or id) with elements attribute.
Is this section of the documentation incorrect or am I missing something?
Do you have any suggestions on how to effectively merge multiple forms into one xhr call through different methods?