Welcome to the Cookbook

loading...
Please login to continue

7.1.1.1 General Options

$option keys Description

$options['evalScripts']

Determines if script tags in the returned content are evaluated. Set to true by default.

$options['frequency']

The number of seconds between interval based checks.

$options['indicator']

The DOM id of an element to show while a request is loading and to hide when a request is completed.

$options['position']

To insert rather than replace, use this option to specify an insertion position of top, bottom, after, or before.

$options['update']

The id of the DOM element to be updated with returned content.

$options['url']

The url of the controller/action that you want to call.

$options['type']

Indicate whether the request should be 'synchronous' or 'asynchronous' (default).

$options['with']

A URL-encoded string which will be added to the URL for get methods or in to the post body for any other method. Example: x=1&foo=bar&y=2. The parameters will be available in $this->params['form'] or available in $this->data depending on formatting. For more information see the Prototype Serialize method.