User Guide

Contents vii
Array Functions.............................................................................................................................111
About Structures ...........................................................................................................................113
Structure notation.................................................................................................................113
Creating and Using Structures.....................................................................................................114
Creating structures................................................................................................................114
Adding data to structures .....................................................................................................114
Finding information in structures .......................................................................................115
Getting information about structures .................................................................................115
Copying structures ................................................................................................................116
Deleting structures................................................................................................................116
Structure Example ........................................................................................................................117
Using Structures as Associative Arrays .......................................................................................119
Looping through structures..................................................................................................119
Structure Functions......................................................................................................................120
Chapter 10: Building Dynamic Forms.........................................................123
Creating Forms with the CFFORM Tag.......................................................................................124
Using HTML in a CFFORM...................................................................................................124
CFFORM controls..................................................................................................................124
Improving performance with ENABLECAB ........................................................................125
Browsers that disable Java ....................................................................................................125
Input Validation with CFFORM Controls ...................................................................................126
Input Validation with JavaScript .................................................................................................127
JavaScript objects passed to the validation routine ...........................................................127
Handling failed validation....................................................................................................127
Building Tree Controls with CFTREE..........................................................................................129
Grouping output from a query.............................................................................................130
CFTREE form variables .........................................................................................................131
Input validation.....................................................................................................................132
Structuring Tree Controls.............................................................................................................132
Image names in a CFTREE....................................................................................................133
Embedding URLs in a CFTREE ....................................................................................................134
Specifying which tree items to send to the action page.....................................................135
Creating Data Grids with CFGRID...............................................................................................135
Populating a grid from a query.............................................................................................136
Creating an Updateable Grid.......................................................................................................137
Editing data in a CFGRID......................................................................................................138
Building Slider Bar Controls.........................................................................................................142
CFSLIDER form variable.......................................................................................................142
Building Text Entry Boxes ............................................................................................................142
CFTEXTINPUT form variable...............................................................................................143
Building Drop-Down List Boxes..................................................................................................143
Embedding Java Applets ..............................................................................................................144
Registering a Java applet.......................................................................................................145
Using CFAPPLET to embed an applet .................................................................................146
Handling form variables from an applet .............................................................................147