Class: Form.Request.Append

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

Form.Request.Append Method: constructor

Syntax

new Form.Request.Append(form, update[, options]);

Arguments

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

Comments

comments powered by Disqus

This documentation is released under a Attribution-NonCommercial-ShareAlike 3.0 License.