Whatever message this page gives is out now! Go check it out!
<cfpod
source = "path"
bodyStyle = "CSS style specification"
headerStyle = "CSS style specification"
height = "number of pixels"
name = "string"
onBindError = "JavaScript function name"
title = "string"
width = "number of pixels"/>
OR
<cfpod
bodyStyle = "CSS style specification"
headerStyle = "CSS style specification"
height = "number of pixels"
name = "string"
onBindError = "JavaScript function name"
title = "string"
width = "number of pixels">
pod contents
</pod>| Attribute | Req/Opt | Default | Description |
bodyStyle | Optional | A CSS style specification for the pod body.As a general rule, use this attribute to set color and font styles. Using this attribute to set the height and width, for example, can result in distorted output. | |
headerStyle | Optional | A CSS style specification for the pod header.As a general rule, use this attribute to set color and font styles. Using this attribute to set the height and width, for example, can result in distorted output. | |
height | Optional | 100 | Height if the control, including the title bar and borders, in pixels |
name | Optional | Name of the pod control. | |
onBindError | Optional | See Description | 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. If you omit this attribute, and have specified a global error handler (by using the ColdFusion.setGlobalErrorHandler function), it displays the error message; otherwise a default error pop-up displays. |
overflow | Optional | auto | Specifies how to display child content whose size would cause the control to overflow the pod boundaries. The following values are valid:
|
source | Required if the tag does not have a body | A URL that returns the pod contents. ColdFusion uses standard page path resolution rules. If you specify this attribute and the cfpod tag has a body, ColdFusion ignores the body contents. You can use a bind expression with dependencies in this attribute; for more information see Usage. 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 cfajaximport tag on the page with the cfpod tag. For more information, see cfajaximport . | |
title | Optional | Text to display in the pod's title bar. You can use HTML mark-up to control the title appearance, of example to show the text in red italic font. If you omit this attribute, the pod does not have a title bar. | |
width | Optional | 500 | Width if the control, including borders, in pixels. |
functionName = function(arguments) {function body}function functionName (arguments) {function body}source="/myapplication/cityPod.cfm?cityname={city}"<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Untitled Document</title>
</head>
<body>
<cflayout type="hbox" style="background-color:##CCffFF; color:red;">
<cflayoutarea>
<cfpod name="pod01" source="displayforpod.cfm?start=1" height="500" width="300"
title="Comment 1"/>
</cflayoutarea>
<cflayoutarea>
<cfpod name="pod02" source="displayforpod.cfm?start=2" height="500" width="450"
title="Comment 2"/>
</cflayoutarea>
</cflayout>
</body>
</html><cffeed action="read" source="http://googleblog.blogspot.com/atom.xml"
query="feedQuery" properties="feedMetadata" >
<cfloop query = "feedQuery"
startRow = "#url.start#" endRow = "#url.start#">
<cfoutput>#feedQuery.content#<br />
=========================================<br/>
</cfoutput>
</cfloop>