Adobe COLDFUSION 9 Manual page 735

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

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
The following are the ColdFusion built-in image names:
• computer
• document
• element
• folder
• floppy
• fixed
• remote
Note: In applet format, you can also control the tree appearance by using the
specify a Windows, Motif, or Metal look.
Embedding URLs in a cftree tag
The
attribute in the
href
cftreeitem
you define the destination of the link in the
URL or an absolute URL, as in the following examples.
Embed links in a cftree control
Create a ColdFusion page named tree3.cfm with the following contents:
1
<cfform action="submit.cfm">
<cftree name="oak"
highlighthref="Yes"
height="100"
width="200"
hspace="100"
vspace="6"
hscroll="No"
vscroll="No"
border="No">
<cftreeitem value="Important Links">
<cftreeitem value="Adobe Home"
parent="Important Links"
img="document"
href="http://www.adobe.com">
<cftreeitem value="ColdFusion Developer Center"
parent="Important Links"
img="document"
href="http://www.adobe.com/devnet/coldfusion/">
</cftree>
</cfform>
Save the page and view it in your browser.
2
Reviewing the code
The following table describes the highlighted code and its function:
tag lets you designate tree items as links. To use this feature in a
attribute of the
href
cftreeitem
Last updated 8/5/2010
tag
attribute to
cftree
lookAndFeel
cftree
tag. The URL for the link can be a relative
730
control,

Advertisement

Table of Contents
loading

Table of Contents