<cfdiv>
Creates an HTML div tag or other HTML container tag and lets you use asynchronous form submission or a bind expression to dynamically control the tag contents.(Requires AJAX extension)
This tag may have a body.
This tag has no <cfscript> support or it uses a different syntax.
<cfdiv
id=string
bindOnLoad=boolean
bind=string
onBindError=string
tagName=string
><!--- body --->[</cfdiv>]
| Attribute | Description |
|---|---|
id
string, optional
|
edit
The HTML ID attribute value to assign to the generated container tag. |
bindOnLoad
boolean, optional
|
edit
To use this attribute, you must also specify a bind attribute |
bind
string, optional
|
edit
(not supported) A bind expression that returns the container contents. Note: If a CFML page specified in this attribute contains tags that use AJAX features, such as cfform, cfgrid, and cfwindow, you must use a tag on the page with the tag. For more information, see cfajaximport. |
onBindError
string, optional
|
edit
The name of a JavaScript function to execute if evaluating a bind expression results in an error. The function must take two attributes: an HTTP status code and a message. |
tagName
string, optional
|
edit
The HTML container tag to create. |
Examples
editThere are currently no examples for this tag.
See also
- Ajax features
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)