Updates a DOM element with the response from the submission of a form (via Ajax). The result is appended to the DOM element instead of replacing its contents.
Extends
Syntax
new Form.Request.Append(form, update[, options]);
Arguments
- The same as Form.Request
Options
- The same as Form.Request in addition to:
- useReveal - (boolean) Use Fx.Reveal to transition the result in to the appended DOM element; defaults to true.
- revealOptions - (object) Options passed along to Fx.Reveal.
- inject - (string) The injection location for the returned content (see Element.inject) into the update element specified in the arguments; defaults to 'bottom'.
Events
- beforeEffect - (function) callback executed before the new element begins its reveal; passed as arguments the container that is revealing.
- success - (function) callback executed after the new element is visible. Passed container of the new content, the container into which it is injected, and (passed along from Request.HTML's onSuccess method) the response tree, the response elements, the response html, and the response javascript