User Guide

22 CFML Quick Reference
cfswitch
<cfswitch
expression = "expression">
One or more cfcase tags
Zero or one cfdefaultcase tags
</cfswitch>
cftable
<cftable
query = "query_name"
maxRows = "maxrows_table"
colSpacing = "number_of_spaces"
headerLines = "number_of_lines"
HTMLTable
border
colHeaders
startRow = "row_number">
...
</cftable>
cftextarea
<cftextarea
name = "name"
label = "text"
required = "yes" or "no"
style = "style specification"
validate = "data type"
validateAt= one or more of "onBlur", "onServer", "onSubmit"
message = "text"
range = "min_value, max_value"
maxlength = "number"
pattern = "regexp"
onValidate = "script name"
onError = "script name"
disabled = "true" "false" or no attribute value
value = "text"
onKeyUp = "JavaScript or ActionScript"
onKeyDown = "JavaScript or ActionScript"
onMouseUp = "JavaScript or ActionScript"
onMouseDown = "JavaScript or ActionScript"
onChange = "JavaScript or ActionScript"
onClick = "JavaScript or ActionScript"
visible = "Yes" or "No"
enabled = "Yes" or "No"
tooltip = "Tip text"
height = "number of pixels" Flash only
width = "number of pixels" Flash only
>
Text
</cftextarea>
cfthrow
Syntax 1
<cfthrow
type = "exception_type "
message = "message"
detail = "detail_description "
errorCode = "error_code "
extendedInfo = "additional_information"
object = "java_except_object">
Syntax 2
<cfthrow
object = #object_name#>
cftimer
<cftimer
label= "text"
type = "inline" or "outline" or "comment" or "debug" >
CFML statements
</cftimer>
cftrace
<cftrace
abort = "Yes" or "No"
category = "string"
inline = "Yes" or "No"
text = "string"
type = "format"
var = "variable_name"
</cftrace>