Cover image for Programming the web with coldfusion MX 6.1 using XHTML
Title:
Programming the web with coldfusion MX 6.1 using XHTML
Personal Author:
Publication Information:
New York : McGraw Hill, 2004
ISBN:
9780072890327

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
30000010122060 QA76.9.W43 P73 2004 Open Access Book Book
Searching...
Searching...
30000010138056 QA76.9.W43 P73 2004 Open Access Book Book
Searching...
Searching...
30000010116998 QA76.9.W34 P73 2004 Open Access Book Book
Searching...
Searching...
30000010116997 QA76.9.W43 P73 2004 Open Access Book Book
Searching...

On Order

Summary

Summary

Programming the Web with Cold Fusion is the latest addition to the Web Developer Series. This text has been written in a textbook fashion at an introductory level for ColdFusion MX students. Learning is facilitated with examples and exercises in each chapter. Students are encouraged to try out examples in the classroom and observe results right away. Careful attention has been placed on concepts where novice programmers encounter most difficulty. This textbook makes an ideal reference after a student has joined the workforce as a ColdFusion programmer.


Table of Contents

Chapter 1 ColdFusion MX 6.1p. 1
Client/Server Technologiesp. 1
Client- versus Server-Side Technologiesp. 2
Architecture and Dynamics of a Web Applicationp. 2
History of ColdFusionp. 5
ColdFusion MXp. 5
ColdFusion MX 6.1p. 7
ColdFusion MX 6.1 Developer Editionp. 8
System Requirementsp. 8
Databases Supported by ColdFusion MX 6.1p. 8
Instructions for Installing ColdFusion MX 6.1 (Developer Edition), Part 1p. 8
ColdFusion MX 6.1 Installation, Part 2: Configuration and Settings Wizardp. 14
Writing a "Hello World" Program in ColdFusionp. 15
ColdFusion Administratorp. 19
Server Settingsp. 20
Data & Services Settingsp. 21
Debugging & Logging Settingsp. 21
Extensions Settingsp. 21
Security Settingsp. 21
Organization of the Bookp. 22
Chapter 2 ColdFusion: Basicsp. 27
Dynamic versus Static Web Pagesp. 27
Variables, Expressions, and Operatorsp. 31
ColdFusion Variablesp. 31
Operators and Operationsp. 40
Expressionsp. 40
Using Functions to Test the Value of Inputp. 43
[left angle bracket]cfparam[right angle bracket] Tagp. 45
Variable Scoping in ColdFusionp. 48
Persisting Variablesp. 49
Web Application Frameworkp. 49
Application-Level Settingsp. 49
Client-Level Scopingp. 50
Setting a Cookiep. 51
Session-Level Variable Scopingp. 53
Application-Level Scopingp. 54
Locking Shared-Scope (Session- and Application-Level) Variablesp. 54
URL Variablesp. 58
Variable Scope and Performancep. 60
Chapter 3 ColdFusion Control Structures (CFML Flow)p. 65
Control Structuresp. 65
Selection Structures or Conditional Statementsp. 66
Testing Multiple Conditionsp. 71
Testing for a Compound Conditional Statementp. 73
[left angle bracket]cfswitch[right angle bracket] and [left angle bracket]cfcase[right angle bracket] Tagsp. 76
Predicate Function is Definedp. 78
Loop Structuresp. 80
Index Loopsp. 80
List Loopsp. 83
Conditional Loopsp. 86
Chapter 4 Formsp. 95
Creating ColdFusion Formsp. 96
HTML Forms Overviewp. 96
ColdFusion Formsp. 96
Form Elementsp. 97
ColdFusion Error Pagesp. 99
Form Processing in ColdFusionp. 100
Processing Input from Radio Buttonsp. 102
Preventing Radio Button Processing Errorsp. 107
Preselection of Radio Buttonsp. 108
Processing Input from Checkboxesp. 108
Preventing Checkbox Processing Errorsp. 113
Setting Parameters with Default Valuesp. 113
Checking If Form Variables Are Defined before Using Themp. 115
Processing Input from List Boxesp. 115
Preventing Drop-Down List Processing Errorsp. 119
Processing Input from a textareap. 121
Formatting and Wrapping a textareap. 124
Validation of Form Fieldsp. 125
Server-Side Validation in ColdFusionp. 127
Enhancing Functionality with [left angle bracket]cfform[right angle bracket]p. 133
Creating Forms Using [left angle bracket]cfform[right angle bracket]p. 133
[left angle bracket]cfinput[right angle bracket] as a Form Elementp. 134
Client-Side Validation Using [left angle bracket]cfinput[right angle bracket]p. 134
[left angle bracket]cfselect[right angle bracket] as a Form Elementp. 138
ColdFusion Forms and Databasesp. 142
Chapter 5 Database Basics: Connectivity, Simple Queries, and Security Issuesp. 153
Cold Fusion and Database Interactionp. 154
Creating a Data Sourcep. 155
Setting Up a Connection to an Access Database Stored Locallyp. 155
Accessing the Data Source via SQL Select, [left angle bracket]cfquery[right angle bracket], and [left angle bracket]cfoutput[right angle bracket] to Retrieve and Display Datap. 158
The [left angle bracket]cfquery[right angle bracket] Tag and SQL Selectp. 158
The [left angle bracket]cftable[right angle bracket] Tagp. 163
Partial Record Setsp. 164
The [left angle bracket]cfgrid[right angle bracket] Tagp. 166
Managing Data: Insert, Update, and Delete Recordsp. 170
The [left angle bracket]cfinsert[right angle bracket] Tagp. 170
SQL Insert Statement for ColdFusionp. 173
SQL Updatep. 174
SQL Deletep. 178
SQL Joinp. 180
The [left angle bracket]cfselect[right angle bracket] Tagp. 182
Security Issues of Databases on the ColdFusion Serverp. 185
Security Provided by Database Systemsp. 185
Create Views in MS Accessp. 186
Security Provided by ColdFusion to Maintain Database Integrityp. 188
Chapter 6 Advanced Database Featuresp. 197
SQL Aggregate Functionsp. 197
Min and Max Aggregate Functionsp. 198
The Group By/Order By Commandp. 200
Transaction Processing and Security of the Databasep. 204
The [left angle bracket]cftransaction[right angle bracket] Tagp. 204
Stored Proceduresp. 212
ColdFusion and MS Access Querying a Queryp. 212
Dynamic SQLp. 215
Working with Datesp. 219
Chapter 7 Built-In Functionsp. 229
String Manipulationp. 230
Trimming Stringsp. 230
Justifying Stringsp. 233
Changing String Casep. 236
Wrapping Stringsp. 236
String Encryption and Decryptionp. 237
Extracting Substringsp. 241
Searching and Replacing Stringsp. 244
Decision or Boolean Functionsp. 248
Mathematical Functionsp. 248
Date and Time Functionsp. 252
Creating Date/Time Objectsp. 253
Formatting Datesp. 253
Date Arithmeticp. 254
Functions to Extract Parts of Datesp. 254
Other Date Functionsp. 255
Decision or Boolean Date Functionsp. 255
Evaluation of Expressionsp. 259
Evaluate() as a Dynamic Evaluation Functionp. 259
Business Example for Evaluate()p. 261
System Functionsp. 266
Chapter 8 Complex Data Typesp. 281
Introduction to Complex Data Typesp. 281
Listsp. 282
List Functionsp. 282
Arraysp. 285
Array Dimensionsp. 285
Creating and Accessing Arraysp. 285
Array Manipulation Functionsp. 286
Looping through One-Dimensional Arraysp. 290
Looping through Multidimensional Arraysp. 292
Structuresp. 294
Property Notationp. 294
Associative Array Notationp. 297
Structure Functionsp. 298
Collection Loopsp. 299
Building a Multi-Item Shopping Cartp. 299
Server-Side Scriptingp. 303
Chapter 9 Modular Codep. 317
Modular Codingp. 317
Using Include Filesp. 318
User-Defined Functionsp. 320
CFScript Method for UDFsp. 321
Functions and Variable Scopep. 324
[left angle bracket]cffunction[right angle bracket] Tag for UDFsp. 324
Reusing Code with Custom Tagsp. 327
Where to Save Custom Tagsp. 327
Custom Tag Variables and Scopep. 328
Paired Tagsp. 330
ColdFusion MX Componentsp. 333
Business Example Using ColdFusion Componentsp. 335
CFC and Object-Oriented Technologiesp. 342
Chapter 10 Cool Featuresp. 347
Suppressing Outputp. 348
Debuggingp. 349
Using the [left angle bracket]cftrace[right angle bracket] Tagp. 349
Exception Handlingp. 352
Exception-Handling Syntaxp. 353
Custom Exceptionsp. 353
Attributes of [left angle bracket]cfcatch[right angle bracket]p. 354
Message and Detailp. 354
Sitewise Error Handlingp. 360
[left angle bracket]cferror[right angle bracket] Syntaxp. 360
The Error Objectp. 361
Logging Messagesp. 365
Abort Processingp. 368
Template Redirectionp. 369
File Handlingp. 373
Sending Emailp. 377
Attaching Files and Headers to Emailp. 378
Multipart Email Messagesp. 378
Graphs and Chartsp. 383
The [left angle bracket]cfchart[right angle bracket] Tagp. 383
The [left angle bracket]cfchartdata[right angle bracket] Tagp. 384
The [left angle bracket]cfchartseries[right angle bracket] Tagp. 385
Graphs with Multiple Data Seriesp. 387
Generating XMLp. 390
Chapter 11 E-Commerce Shopping Cart Applicationp. 399
E-Commerce and the Shopping Cartp. 400
High-Level Flow Diagramp. 401
Data Structuresp. 402
The Item Structurep. 402
The Shopping Cart Structurep. 403
Session Variablesp. 406
The Application.cfm Filep. 406
Include Filesp. 407
Header Filep. 407
Footer Filep. 409
Sitewise Error Handlingp. 412
Product Catalogp. 414
ColdFusion Component to Get the Product Listp. 414
Displaying the Productsp. 415
Shopping Cartp. 419
Customer Information Pagep. 430
Order Review Pagep. 445
Order Confirmation Pagep. 455
Shopping Cart Enhancementsp. 465
Product Catalog Pagep. 465
Customer Information Pagep. 466
Order Review Pagep. 466
Order Confirmation Pagep. 466
Other Suggested Projectsp. 467
Project 1 Online Customer Service Applicationp. 467
Project 2 Online Student Course Registrationp. 467
Appendix A SQL Commandsp. 471
Appendix B XHTML versus HTML Tags Ordered by Functionp. 477