Embedding Urls In A Cftree - MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual

Developing coldfusion mx applications
Table of Contents

Advertisement

folder
floppy
fixed
remote
Note: You can also control the tree appearance by using the lookAndFeel attribute to specify a
Windows, Motif, or Metal look.

Embedding URLs in a cftree

The
attribute in the
href
in a
, you define the destination of the link in the
cftree
URL for the link can be a relative URL or an absolute URL as in the following examples.
To embed links in a cftree:
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="Macromedia Home"
parent="Important Links"
img="document"
href="http://www.macromedia.com">
<cftreeitem value="ColdFusion Home"
parent="Important Links"
img="document"
href="http://www.coldfusion.com">
</cftree>
</cfform>
Save the page and view it in your browser. The following figure shows the output of this code:
2
592
Chapter 27: Building Dynamic Forms
tag lets you designate tree items as links. To use this feature
cftreeitem
attribute of
href
cftreeitem
. The

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents