This is an 3 day introductory ColdFusion class for Web designers who are brand new to ColdFusion 9. You will learn to process forms, manage sessions, write reusable code and create database-driven ColdFusion-based websites.
Goals
- Learn to get data from a database and display it on the page
- Learn to insert, Edit and Delete records from a database
- Learn to pass data from one page and receive it on another using HTML Forms
- Learn to create Dynamic Form Fields including Dynamic Select Lists
- Learn to build a Search Interface
- Learn to use Session Variables to provide Password Protection
- Learn to call ColdFusion Components (CFCs) and Custom Tags
Outline
- Introduction to ColdFusion
- Static pages vs. Dynamic pages
- Server-side Web Technologies
- Database Alphabet Soup: ODBC/JDBC, DSNs and SQL
- Course Objectives and Prerequisites
- Introduction to Course Project
- ColdFusion Basics
- Using CFML
- Code Editors
- Dreamweaver Interface
- Tag Updaters / Extensions
- Tag Editing Dialog Boxes
- Embedded Tag Help
- Using ColdFusion Comments
- Creating Variables
- <cfset> and <cfoutput>
- Variable Scope/Prefixes
- Built-in ColdFusion Functions
- CF Function Reference (Dreamweaver specific)
- Online Reference (https://livedocs.adobe.com)
- Tip: (https://cfquickdocs.com)
- Using <cfinclude> to reuse code
- Using CFML
- Dynamic Data: Querying the Database
- Database Basics
- Introduction to SQL
- Select Statement
- Update Statement
- Insert Statement
- Delete Statement
- Data Source Name (DSN) / Remote Development Server (RDS)
- The DSN Used in This Class: movieList
- Course Project Database
- Querying the database with <cfquery>
- <cfdump> for Quick Output
- Customizing Display with <cfoutput>
- Building Dynamic Tables
- Shortcut: <cftable>
- Shortcut: Dynamic Table Tool (in Dreamweaver)
- Database Basics
- Creating a Drill-down Interface
- Passing Variables between Pages
- “Two-page method”
- Receive Variables through the URL
- Using a WHERE clause in a SQL Statement
- Protecting Against SQL Injection Attacks with <cfqueryparam>
- Passing Variables between Pages
- Conditional Statements and Forms
- Conditional Statements
- <cfif>, <cfelseif> and <cfelse>
- Comparison Operators
- Operator
- Description
- Using the isDefined() function
- HTML Form Review
- Self-Submitting Forms
- Using the <cfparam> tag to set a default value
- Quick Examination of a ColdFusion Framework (Methodology): Fusebox
- Dynamically Populating Select Lists
- HTML Review: <select> tags
- Introducing the <cfform> Tag
- Shortcut: <cfselect>
- Conditional Statements
- Quick Introduction to RSS and Ajax with <cfform>
- Reading an RSS Feed
- Introducing the <cfform> Tag
- Building a Mask with <cfform>
- Automatically Build a Dynamic Select List with <cfselect>
- Search Interface
- Creating a Search Interface
- Using % and _ in a LIKE Statement
- Creating a Search Interface
- Insert Records into the Database
- Inserting Records
- SQL Insert Statement
- Insert Record Step 2 – the Insert
- Shortcut: <cfinsert>
- Redirect Users with <cflocation>
- Automated Form Validation
- Client-side vs. Server-side validation: When does the validation code run?
- Inserting Records
- Edit (Update) Database Records
- Updating records
- SQL UPDATE Statement Review
- Passing the Primary Key
- Page 2 – View Current Data in a Form
- Page 3 – Perform the Update to the Database
- Shortcut: <cfupdate>
- Deleting Records
- Note on Deleting records
- Review of the SQL Delete Statement
- “Deleting” without deleting
- No <cfdelete>!
- Updating records
- Reusing Code
- Reusing code with <cfinclude> and <cflocation>
- Custom Tags
- Where to store Custom Tags
- CALLER and ATTRIBUTE scopes
- Using <cfmodule>
- A Note about CFX tags
- User Defined Functions (UDFs)and ColdFusion Components (CFCs)
- Creating UDFs with the <cffunction> tag
- Using ColdFusion Components (CFCs)
- Creating Components
- Calling or Invoking Components
- Passing Arguments to Components
- The Component Code
- The main CFML page
- View a Component directly in the browser
- Using Session Variables for Password Protection
- Session Variables
- Using Application.cfc to Enable Session Management
- Creating Password Protected Pages
- Password-protect.cfm (the included page)
- Application.cfm
- Locking Session and Application variables with <cflock>
- Session Variables
- Tracking User Information with Cookies (optional)
- Using Cookies to Track Users
- Sending email with <cfmail> (optional)
- Using ColdFusion to Send Email
- <cfmail> Tag Syntax
To Hire an AMS ColdFusion Subject Matter Expert and Instructor who also teaches this class, call 800-798-3901 today!