Sha256: 41e7d2898ad93275f190c4e20a753a5debf1b4f4602a5c815a29383e9b32d163

Contents?: true

Size: 1.49 KB

Versions: 7

Compression:

Stored size: 1.49 KB

Contents

Class: Form.Request.Append {#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][]

Form.Request.Append Method: constructor {#Form-Request-Append:constructor}
--------------------------------------------------

### 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

[Form.Request]: /more/Forms/Form.Request
[Fx.Reveal]: /more/Fx/Fx.Reveal
[Element.inject]: /core/Element/Element#Element:inject

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lsd_rails-0.1.6 Packages/mootools-more/Docs/Forms/Form.Request.Append.md
lsd_rails-0.1.5 Packages/mootools-more/Docs/Forms/Form.Request.Append.md
lsd_rails-0.1.4 Packages/mootools-more/Docs/Forms/Form.Request.Append.md
lsd_rails-0.1.3 Packages/mootools-more/Docs/Forms/Form.Request.Append.md
lsd_rails-0.1.2 Packages/mootools-more/Docs/Forms/Form.Request.Append.md
lsd_rails-0.1.1 Packages/mootools-more/Docs/Forms/Form.Request.Append.md
lsd_rails-0.1 Packages/mootools-more/Docs/Forms/Form.Request.Append.md