<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.

This tag may have a body.

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

Attribute Description
onbinderror
string, optional

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

The HTML container tag to create.

bindonload
boolean, optional
  • true (executes the bind attribute expression when first loading the tag. - false (does not execute the bind attribute expression until the first bound event) To use this attribute, you must also specify a bind attribute
id
string, optional

The HTML ID attribute value to assign to the generated container tag.

bind
string, optional

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.

<cfdiv
    [onbinderror=string]
    [tagname=string]
    [bindonload=boolean]
    [id=string]
    [bind=string]
><!--- body --->[</cfdiv>]

Examples

There are currently no examples for this tag.

See also