
806
DEVELOPING
COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
Las
t
upda
te
d 8/5/2010
In addition to the tags and attributes, ColdFusion provides many JavaScript functions that let you control and manage
the display. Many functions control the display of specific tags. For example, you can use JavaScript functions to
dynamically display and hide the window. There are also several utility tags, such as the
ColdFusion.getElementValue
function that gets the value of a control attribute, or the
ColdFusion.navigate
function that displays the results of a URL in a container tag. For a complete list of all ColdFusion Ajax JavaScript
functions, and detailed function descriptions, see Ajax JavaScript Functions in the
CFML Reference
.
Using ColdFusion Ajax user interface features
ColdFusion Ajax user interface features let you create data-driven pages that update dynamically without requiring
multiple HTML pages or page refreshes or non-HTML display tools such as Flash forms. Many user interface features
use data binding to dynamically get data based on other data values: form field values, form control selections, and
selections in Spry data sets.
ColdFusion Ajax user interface controls and features can be divided into two major categories:
•
Display layout
•
Data interaction
Display layout controls include the
cflayout
,
cfpod
, and
cfwindow
controls. Some of the data interaction features
include the HTML
cfgrid
control, the
cfmenu
control, and dynamic autosuggest lists for text input controls. Most
display layout and data interaction features can use data binding to dynamically interact with the user.
cfgrid format="html"
A dynamic, editable, sortable, data grid.
cfinput type="datefield"
An input control that users can fill by selecting a date from a pop-up calendar.
cftextarea richtext="yes"
A text area with a set of controls that let users format the displayed text.
cftree format="html"
A dynamic, editable, tree-format representation of data.
cfslider
A slider control, for selecting a numeric value from a range, in a ColdFusion form.
Menu tags
cfmenu
A menu bar or the root of a drop-down menu.
cfmenuitem
An individual item in a menu, or the root of a submenu.
User assistance tags and attributes
cfinput type="text"
autosuggest="
bindexpression
"
A drop-down autofill suggestion box. As the user types, a list appears with completion
suggestions based on the text the user has typed.
cftooltip
tag, and the
tooltip
attribute on
cfinput
,
cfselect
,
cftextarea
controls
A textual description of a control or region that appears when the user hovers the
mouse over the control or region.
Other tags
cfprogressbar
A progress bar to indicate the progress of an activity such as a file download.
cfmap
A geographical map within a ColdFusion web page.
cfmediaplayer
An inbuild media player.
cfmessagebox
A control for displaying pop-up messages.
Tag/attribute
Description
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...