/** section: Ajax * class Ajax.Updater < Ajax.Request * * A class that performs an Ajax request and updates a container’s contents * with the contents of the response. * * `Ajax.Updater` is a subclass of [[Ajax.Request]] built for a common * use-case. * *

Example

* * new Ajax.Updater('items', '/items', { * parameters: { text: $F('text') } * }); * * This example will make a request to the URL `/items` (with the given * parameters); it will then replace the contents of the element with the ID * of `items` with whatever response it receives. * *

Callbacks

* * `Ajax.Updater` supports all the callbacks listed in the [[Ajax section]]. * Note that the `onComplete` callback will be invoked **after** the element * is updated. * *

Additional options

* * `Ajax.Updater` has some options of its own apart from the common options * described in the [[Ajax section]]: * * * `evalScripts` ([[Boolean]]; defaults to `false`): Whether `