Adobe COLDFUSION 9 Manual page 884

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
<cfoutput>
<cfxml variable="BookDetailsXML" >
<?xml version="1.0" encoding="iso-8859-1"?>
<products>
<product>
</product>
</products>
</cfxml>
</cfoutput>
<!--- Convert the XML object to an XML string. --->
<cfset xmldata = xmlparse(BookDetailsXML)>
<cfcontent type="text/xml" reset="yes">
<cfreturn xmldata>
</cffunction>
</cfcomponent>
The Filters.xml file
<?xml version="1.0" encoding="iso-8859-1"?>
<filters>
<filter>
<filterid>1</filterid>
<name></name>
<description>No Filter</description>
</filter>
<filter>
<filterid>2</filterid>
<name>Fiction</name>
<description>Look for Fiction</description>
</filter>
<filter>
<filterid>3</filterid>
<name>Non-fiction</name>
<description>Look for Nonfiction</description>
</filter>
</filters>
Specifying client-side support files
By default, ColdFusion does the following:
• Gets all the client-side JavaScript, CSS, and other files required for Ajax-based features from the
web_root/CFIDE/scripts/ajax directory.
• For each application page, imports only the JavaScript files required for the tags that are explicitly included on the page.
In some cases, override these default behaviors.
<name>#BookDetails.TITLE#</name>
<category>#BookDetails.GENRE#</category>
<bookimage>#BookDetails.BOOKIMAGE#</bookimage>
<desc>#BookDetails.BOOKDESCRIPTION#</desc>
Last updated 8/5/2010
879

Advertisement

Table of Contents
loading

Table of Contents