For the complete documentation index, see llms.txt. This page is also available as Markdown.

AjaxProxy

Creates an AJAX proxy for client-server communication, allowing JavaScript to call server-side functions asynchronously.

Syntax

<bx:ajaxproxy 
    cfc="string"
    jsclassname="string"
    bind="string"
    onError="string"
    onSuccess="string" />

Attributes

Attribute
Type
Required
Description
Default

cfc

string

No*

The CFC for which to create a proxy (dot-delimited path)

""

jsclassname

string

No

Name for the JavaScript proxy class (defaults to CFC name)

""

bind

string

No*

Bind expression for CFC method, JavaScript function, or URL

""

onError

string

No

JavaScript function to execute if bind fails

""

onSuccess

string

No

JavaScript function to execute if bind succeeds

""

Note: Either cfc or bind is required.

Examples

CFC-based proxy

Bind-based proxy

With callbacks

  • AjaxImport - Import required AJAX files

Last updated

Was this helpful?