Sign In
Upload
Manuals
Brands
MACROMEDIA Manuals
Software
COLDFUSION 5-DEVELOPING
MACROMEDIA COLDFUSION 5-DEVELOPING Manuals
Manuals and User Guides for MACROMEDIA COLDFUSION 5-DEVELOPING. We have
1
MACROMEDIA COLDFUSION 5-DEVELOPING manual available for free PDF download: Develop Manual
MACROMEDIA COLDFUSION 5-DEVELOPING Develop Manual (438 pages)
Brand:
MACROMEDIA
| Category:
Software
| Size: 4.4 MB
Table of Contents
Table of Contents
3
About this Book
15
Intended Audience
16
New Features
16
Developer Resources
17
About Coldfusion Documentation
18
Printed and Online Documentation Set
19
Viewing Online Documentation
19
Printing Coldfusion Documentation
19
Getting Answers
20
Contacting Macromedia
20
Chapter 1 Introduction to Coldfusion
21
A Quick Web Overview
22
Before You Begin
23
Html
23
Relational Database Design and Management
23
Sql
23
What Is Coldfusion
24
Editions of Coldfusion
24
Coldfusion Features and Components
25
About the Features
25
About the Components
26
How Coldfusion Server Works
28
Chapter 2 Writing Your First Coldfusion Application
29
The Development Process
30
Working with Coldfusion Application Pages
30
About Applicaton Pages
30
Creating Application Pages
30
Saving Application Pages
31
Viewing Application Pages
31
Working with Variables
33
About Variables
33
Adding more Variables to the Application
35
Development Considerations
36
Chapter 3 Querying a Database
37
Publishing Dynamic Data
38
Understanding Database Basics
39
Understanding Data Sources
40
About Open Database Connectivity
40
Accessing Data Sources
41
Adding Data Sources
42
Specifying Data Sources Dynamically
44
Retrieving Data
45
The Cfquery Tag
45
The Cfquery Tag Syntax
45
Writing SQL
46
Basic SQL Syntax Elements
46
SQL Notes and Considerations
47
Building Queries
48
Query Notes and Considerations
49
Outputting Query Data
50
Query Output Notes and Considerations
51
Getting Information about Query Results
52
Query Properties Notes and Considerations
53
Using Query Results in Queries
54
Query of Query Benefits
54
Creating Queries of Queries
54
Performing a Query on a Query
55
Chapter 4 Retrieving and Formatting Data
59
Using Forms to Specify the Data to Retrieve
60
Form Tag Syntax
60
Form Controls
61
Form Notes and Considerations
64
Working with Action Pages
65
Processing Form Variables on Action Pages
65
Dynamically Generating SQL Statements
65
Creating Action Pages
66
Testing for a Variable's Existence
67
Form Variable Notes and Considerations
68
Working with Queries and Data
69
Using HTML Tables to Display Query Results
69
Formatting Individual Data Items
70
Performing Pattern Matching
71
Filtering Data Based on Multiple Conditions
71
Creating Table Joins
72
Building Flexible Search Interfaces
72
Returning Results to the User
75
If There Are no Query Results
75
Returning Results Incrementally
76
Chapter 5 Graphing Data
79
Creating a Graph
80
Graph Types
80
Creating a Basic Graph
81
Graphing Data
82
Graphing a Query
82
Graphing Individual Data Points
85
Combining a Query and Data Points
86
Controlling Graph Appearance
87
Common Graph Characteristics
87
Setting Bar and Horizontal Bar Chart Characteristics
88
Setting Pie Chart Characteristics
91
Setting Line and Area Graph Characteristics
94
Linking Dynamically from Graphs
97
Chapter 6 Making Variables Dynamic
101
Dynamically Populating List Boxes
102
Creating Dynamic Check Boxes and Multiple-Selection List Boxes
104
Check Boxes
104
Multiple Selection Lists
106
Ensuring that Variables Exist
108
Using Cfparam to Test for Variables and Set Default Values
108
Requiring Users to Enter Values in Form Fields
109
Validating Data Types
110
Using Cfparam to Validate the Data Type
110
Validating Form Field Data Types
111
Checking Query Parameters with Cfqueryparam
114
Dynamic SQL
116
Implementing Dynamic SQL
116
Chapter 7 Updating Your Database
121
Inserting Data
122
Creating an HTML Insert Form
122
Data Entry Form Notes and Considerations
123
Creating an Action Page to Insert Data
123
Updating Data
126
Creating an Update Form
126
Creating an Action Page to Update Data
129
Deleting Data
132
Deleting a Single Record
132
Deleting Multiple Records
133
Chapter 8 Handling Complex Data with Structures
135
About Arrays
136
Basic Array Techniques
138
Creating an Array
138
Adding Elements to an Array
139
Referencing Elements in Dynamic Arrays
139
Populating Arrays with Data
141
Populating an Array with Arrayset
141
Populating an Array with Cfloop
141
Using Nested Loops for 2D and 3D Arrays
142
Populating an Array from a Query
143
Array Functions
144
About Structures
145
Structure Notation
146
Creating and Using Structures
147
Creating Structures
147
Adding Data Elements to Structures
147
Updating Values in Structures
148
Getting Information about Structures
149
Copying Structures
150
Deleting Structures
150
Structure Example
150
Looping through Structures
152
Structure Functions
153
With Structures
135
Chapter 9 Building Dynamic Forms
155
Creating Forms with the Cfform Tag
156
Using HTML and Cfform
156
Cfform Controls
157
Preserving Input Data with Preservedata
157
Browser Considerations
158
Input Validation with Cfform Controls
159
Validating with Regular Expressions
160
Input Validation with Javascript
164
Handling Failed Validation
164
Example: Validating an E-Mail Address
164
Building Tree Controls with Cftree
167
Grouping Output from a Query
168
Cftree Form Variables
169
Input Validation
169
Structuring Tree Controls
170
Image Names in a Cftree
171
Embedding Urls in a Cftree
172
Specifying the Tree Item in the URL
173
Creating Data Grids with Cfgrid
173
Populating a Grid from a Query
174
Creating an Updateable Grid
175
Navigating and Entering Data in a Grid
175
Controlling Cell Contents
176
How User Edits Are Returned
176
Editing Data in Cfgrid
177
Updating the Database with Cfgridupdate
179
Updating the Database with Cfquery
180
Building Slider Bar Controls
184
Building Text Entry Boxes
185
Building Drop-Down List Boxes
186
Embedding Java Applets
187
Registering a Java Applet
187
Using Cfapplet to Embed an Applet
189
Handling Form Variables from an Applet
189
Chapter 10 Reusing Code
191
Ways to Reuse Code
192
Reusing Common Code with Cfinclude
192
Using Custom Tags
193
Using Existing Custom Tags
194
Creating Custom CFML Tags
194
Variable Scopes and Special Variables
194
Using Tag Attributes
195
Passing Values to and from Custom Tags
196
Passing Custom Tag Attributes Via CFML Structures
197
Custom Tag Example
198
Nesting Custom Tags
200
Passing Data between Nested Custom Tags
201
What Data Is Accessible
201
Where Is Data Accessible
201
High-Level Data Exchange
201
Executing Custom Tags
205
Tag Instance Data
205
Modes of Execution
205
Specifying Execution Modes
205
Terminating Tag Execution
206
Access to Generated Content
207
Installing Custom Tags
207
Local Tags
207
Shared Tags
207
Managing Custom Tags
208
Resolving Filename Conflicts
208
Securing Custom Tags
208
Encoding Custom Tags
209
Chapter 11 Preventing and Handling Errors
211
Debug Settings in the Coldfusion Administrator
212
Generating Debug Information for an Individual Page
212
Generating Debug Information for an Individual Query
212
Error Messages
212
CFML Code Validation
214
Runtime Validation
214
The CFML Syntax Checker
214
Troubleshooting Common Problems
215
ODBC Data Source Configuration
215
Http/Url
215
CFML Syntax Errors
215
Error Handling in Coldfusion
217
Understanding Coldfusion Errors
217
Generating Custom Error Messages with Cferror
219
Creating an Error Application Page
220
Logging Errors
222
Handling Exceptions in Coldfusion
224
Types of Recoverable Exceptions Supported
225
Exception Information in Cfcatch
226
Exception Handling Strategies
228
Exception Handling Example
228
Custom Exception Types
230
Chapter 12 Using the Application Framework
233
Understanding the Web Application Framework
234
Application-Level Settings and Functions
234
Client, Session, Application, and Server Scope Variables
234
Custom Error Handling
235
Web Server Security Integration
235
Mapping an Application Framework
236
Processing Application.cfm and Onrequestend.cfm
236
Defining the Directory Structure
237
Creating the Application.cfm File
239
Naming the Application
239
Setting Application Default Variables and Constants
239
Managing the Client State
241
About Client and Session Variables
241
About Client Cookies
242
Managing Client State in a Clustered Environment
242
Managing Client State Without Cookies
242
Configuring and Using Client Variables
243
Setting up Client Variable Options
243
Using Client Variables
244
Using Session Variables
248
Enabling Session Variables
248
What Is a Session
248
Storing Session Data in Session Variables
249
Standard Session Variables
249
Getting a List of Session Variables
250
Using Application Variables
250
Storing Application Data in Application Variables
250
Application Variable Timeouts
251
Tips for Using Application Variables
251
Getting a List of Application Variables
251
Using Server Variables
252
Locking Code with Cflock
253
Using Cflock
253
How Cflock Works
253
Using Administrative Lock Management
256
Nesting Locks and Avoiding Deadlocks
257
Examples of Cflock
258
Chapter 13 Extending Coldfusion Pages with CFML Scripting
263
About Cfscript
264
Cfscript Example
264
Supported Statements
264
The Cfscript Language
265
Comments
265
Variables
265
Expressions
265
Statements
265
Reserved Words
268
Differences from Javascript
268
Interaction of Cfscript with CFML
269
Defining and Using Custom Functions
270
Defining Functions
270
Calling Functions
271
Using Arguments and Variables
271
Identifying Custom Functions
273
Examples of Custom Functons
273
Using Custom Functions Effectively
274
Chapter 14 Using Regular Expressions in Functions
280
About Regular Expressions
280
Basic Regular Expression Rules
281
Character Classes
281
Multicharacter Regular Expressions
283
Limiting Input String Size
284
Anchoring a Regular Expression to a String
284
Using Backreferences
285
Using Backreferences in Replacement Strings
285
Returning Matched Subexpressions
286
Regular Expression Examples
287
Regular Expressions in CFML
287
Chapter 15 Indexing and Searching Data
289
Searching a Coldfusion Web Site
290
Advantages of Using Verity
290
Supported File Types
291
Support for International Languages
292
Creating a Searchable Data Source
293
Creating a Collection
293
Populating and Indexing a Collection
296
Selecting an Indexing Method
297
Building a Search Interface
299
Indexing Query Results
302
Indexing Database Query Results
302
Indexing Cfldap Query Results
303
Indexing Cfpop Query Results
304
Using Query Expressions
305
Simple Query Expressions
305
Explicit Query Expressions
306
Expression Syntax
306
Composing Search Expressions
307
Searching with Wildcards
308
Searching for Special Characters as Literals
309
Operators and Modifiers
310
Modifiers
317
Managing Collections
318
Maintenance Options
318
Securing a Collection
318
Chapter 16 Sending and Receiving E-Mail
321
Using Coldfusion with Mail Servers
322
Sending E-Mail Messages
322
Sending SMTP Mail with Cfmail
323
Sample Uses of Cfmail
324
Sending Form-Based E-Mail
324
Sending Query-Based E-Mail
324
Sending E-Mail to Multiple Recipients
325
Customizing E-Mail for Multiple Recipients
326
Attaching a MIME File
327
Advanced Sending Options
328
Sending Mail as HTML
328
Error Logging and Undelivered Messages
328
Receiving E-Mail Messages
329
Using Cfpop
329
Cfpop Query Variables
330
Handling POP Mail
330
Retrieving Only Message Headers
330
Retrieving an Entire Message
332
Retrieving Attachments with Messages
333
Deleting Messages
334
Chapter 17 Managing Files on the Server
337
Using Cffile
338
Uploading Files
339
Resolving Conflicting Filenames
341
Controlling the Type of File Uploaded
341
Setting File and Directory Attributes
343
Windows
343
Unix
343
Evaluating the Results of a File Upload
344
Moving, Renaming, Copying, and Deleting Server Files
346
Reading, Writing, and Appending to a Text File
347
Reading a Text File
347
Writing a Text File
348
Performing Directory Operations
349
Returning File Information
349
Chapter 18 Interacting with Remote Servers
351
Using Cfhttp to Interact with the Web
352
Using the Cfhttp Get Method
352
Creating a Query from a Text File
355
Using the Cfhttp Post Method
357
Performing File Operations with Cfftp
361
Caching Connections Across Multiple Pages
363
Connection Actions and Attributes
364
Moving Complex Data Structures Across the Web with WDDX
365
An Overview of Distributed Data for the Web
365
WDDX and Web Services
366
WDDX Components
366
Working with Application-Level Data
367
Data Exchange Across Application Servers
367
How WDDX Works
368
Converting CFML Data to a Javascript Object
369
Transferring Data from Browser to Server
370
Storing Complex Data in a String
373
Chapter 19 Application Security
375
Coldfusion Security Features
376
Remote Development Services (RDS) Security
376
Overview of User Security
377
Using Advanced Security in Application Pages
378
Using the Cfauthenticate Tag
379
Authentication and Authorization Functions
380
Using the Isauthenticated Function
380
Using the Isauthorized Function
380
Catching Security Exceptions
381
Using the Cfimpersonate Tag
382
Example of User Authentication and Authorization
383
Authenticating Users in Application.cfm
383
Checking for Authentication and Authorization
385
Chapter 20 Using Cfobject to Invoke Component Objects
388
Component Object Overview
388
About COM
388
About CORBA
388
About Java Objects
388
Invoking Component Objects
389
Using Properties
389
Calling Methods
389
Calling Nested Objects
390
Getting Started with COM/DCOM
390
Requirements for COM
390
Registering the Object
391
Finding the Component Progid and Methods
391
Creating and Using COM Objects
394
Connecting to COM Objects
394
Setting Properties and Invoking Methods
395
Getting Started with CORBA
396
Calling CORBA Objects
396
Declaring Structures and Sequences
396
Exception Handling
398
Calling Java Objects
398
Getting Started with Java
398
Java and Cold Fusion Data Type Conversions
401
Exception Handling
402
The Class Loading Mechanism
404
A more Complex Java Example
405
Chapter 21 Building Custom CFXAPI Tags
409
What Are CFX Tags
410
Before You Begin Developing CFX Tags in Java
411
Sample Java Cfxs
411
Setting up Your Development Environment to Develop Cfxs in Java
411
Customizing and Configuring Java
412
Writing a Java CFX
413
Processing Requests
413
Loading Java CFX Classes
415
Automatic Class Reloading
415
Life Cycle of Java Cfxs
416
Calling the CFX from a Coldfusion Page
416
Zipbrowser Example
417
Approaches to Debugging Java Cfxs
418
Outputting Debug Information
418
Using the Debugging Classes
419
Developing CFX Tags in C
421
Sample C++ Cfxs
421
Setting up Your C++ Development Environment
421
Using the Tag Wizard to Create Cfxs in C
421
Compiling C++ Cfxs
422
Implementing C++ CFX Tags
422
Debugging C++ Cfxs
422
Registering Cfxs
424
Distributing CFX Tags
425
Index
427
Advertisement
Advertisement
Related Products
MACROMEDIA COLDFUSION 5-CFML
MACROMEDIA BREEZE 5
MACROMEDIA BREEZE 5-MANAGER
MACROMEDIA COLDFUSION 5-ADVANCED ADMINISTRATION
MACROMEDIA COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO
MACROMEDIA COLDFUSION 5 - INSTALING AND CONFIGURING SERVER
MACROMEDIA COLDFUSION MX 61 - INSTALLING COLDFUSION MX FOR IBM WEBSPHERE APPLICATION SERVER
MACROMEDIA COLDFUSION MX-CLUSTERCATS
MACROMEDIA ColdFusion Server 5
MACROMEDIA ColdFusion MX
MACROMEDIA Categories
Software
More MACROMEDIA Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL