
768
DEVELOPING
COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
Las
t
upda
te
d 8/5/2010
Adding text, images, rules, and space with the cfformitem tag
Because Flash forms do not support inline HTML, you use the
cfformitem
tag to add text blocks and horizontal and
vertical rules to your form. (Flash form controls, such as
cfinput
, use the
label
or
value
attribute to specify text
labels.) You can also use the
cfformitem
tag to add spacers between visual form elements.
The
cfformitem type="hrule"
and
cfformitem type="vrule"
tags put horizontal and vertical rules in the form.
You can specify the rule thickness, color, and shadow characteristics by using style specifications. For more
information on specifying rule styles, see Styles for cfformitem with hrule or vrule type attributes in ColdFusion Flash
Form Style Reference in the
CFML Reference
.
The
cfformitem type="spacer"
tag puts a blank space of the specified height and width on the form. This tag type
does not use styles; it can be useful in improving the form appearance by helping you control the form layout.
The
cfformitem type="text"
tag lets you insert plain text in the form You can use the
style
attribute to apply a
consistent format to the text.
The
cfformitem type="html"
tag lets you insert formatted text and images in the form. You can include basic
HTML-style formatting tags in the body of this tag to add images and to format and style the text.
You can use the following formatting tags and attributes in the body of a
cfformitem type="html"
tag:
The
img
tag supports the following attributes:
Tag
Valid attributes
a
href
URL to link to.
target
window name; can be a standard HTML window name such as _blank.
b
None.
br
None.
font
color
Must be in hexadecimal format, such as #FF00AA. Use a single number sign (#) character.
faceC
an be a comma-delimited list of font face names; Flash uses the first font that is available on the client
system.
size
In pixels; + and -relative values are allowed.
i
None.
img
See the attribute table for the
img
tag.
Note: Close this tag with /> or an </img> tag.
li
None.
p
align
Must be one of the following:
left
,
right
,
center
.
textformat
See the attribute table for the
textformat
tag.
u
None.
Attribute
Description
src
(Required) URL or path to a JPEG or SWF file. Images are not displayed until they have downloaded completely.
Flash Player does not support progressive JPEG files.
width
Width of the image, in pixels.
height
Height of the image in pixels.
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...