<cfajaxproxy>

Creates a JavaScript proxy for a ColdFusion component, for use in an AJAX client. Alternatively, creates a proxy for a single CFC method, JavaScript function, or URL that is bound to one or more control attribute values.

Usage

<cfajaxproxy
    [jsclassname=string]
    [onerror=string]
    [onsuccess=string]
    [extends=boolean]
    [methods=string]
    [cfc=string]
    [bind=string]
><!--- body --->[</cfajaxproxy>]

This tag may have a body.

This tag has no cfscript support or it uses a different syntax.

Attributes

Attribute Description
jsclassname
(string, optional)

The name to use for the JavaScript proxy class.

onerror
(string, optional)

The name of a JavaScript function to invoke when a bind, specified by the bind attribute fails. The function must take two arguments: an error code and an error message.

onsuccess
(string, optional)

The name of a JavaScript function to invoke when a bind, specified by the bind attribute succeeds. The function must take one argument, the bind function return value. If the bind function is a CFC function, the return value is automatically converted to a JavaScript variable before being passed to the onSuccess function.

extends
(boolean, optional)

If true force ajaxproxy to look for remote methods in the cfc extensions chain. Any remote method found will be added to the proxy object. This atrribute cannot be used with a bind attribute.

methods
(string, optional)

Comma delimited list of methods name. If exists only the method ( if remote ) specified will be exposed in the proxy object.

cfc
(string, optional)
bind
(string, optional)

Examples

There are currently no examples for this tag.