cfdump tag: how to use format (html, text) attribute in cfdump in coldfusion



cfdump tag: how to use format (html, text) attribute in cfdump in coldfusion

cfdumpFormat.cfm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfdump tag: how to use format (html, text) attribute in cfdump in coldfusion</title>
</head>

<body>
<h2 style="color:DodgerBlue; font-style:italic">cfdump tag example: how to use format (html, text) attribute</h2>
<hr width="600" align="left" color="CadetBlue" />
<br />

<cfset Color=StructNew()>
<cfset Color.ID=1>
<cfset Color.Name="Bisque">
<cfset Color.Value="##FFE4C4">

<cfdump var="#Color#" label="Color [Format html]" format="html">
<br /><br />

<cfdump var="#Color#" label="Color [format text]" format="text">

</body>
</html>
   




Related coldfusion example