* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Download Course Title
Survey
Document related concepts
Microsoft Access wikipedia , lookup
Tandem Computers wikipedia , lookup
Entity–attribute–value model wikipedia , lookup
Oracle Database wikipedia , lookup
Extensible Storage Engine wikipedia , lookup
Navitaire Inc v Easyjet Airline Co. and BulletProof Technologies, Inc. wikipedia , lookup
Ingres (database) wikipedia , lookup
Functional Database Model wikipedia , lookup
Concurrency control wikipedia , lookup
Microsoft SQL Server wikipedia , lookup
Open Database Connectivity wikipedia , lookup
Microsoft Jet Database Engine wikipedia , lookup
Relational model wikipedia , lookup
Database model wikipedia , lookup
Transcript
"Charting the Course ... ... to Your Success!" Core ColdFusion 8 Course Summary Description ColdFusion 8 is the wildly popular server-side language that allows non-programmers to quickly produce datadriven websites. Since the content is stored in a database, the pages are created dynamically. In addition to learning basic ColdFusion techniques, students will learn basic database concepts using Microsoft Access, including how to create Data Source Names (DSN), SQL statements and relational database basics. Objectives At the end of this course, students will be able to: • • Topics • • • • • • • • • • • • • • Query the database using the <cfquery> tag and display the resulting records using <cfoutput>, <cftable>, <cfselect> and more Create an administration section that will allow them to add, edit or delete records in the database Introduction to ColdFusion ColdFusion Basics Dynamic Data: Querying the Database Creating a Drill-down Interface Conditional Statements and Forms ColdFusion and Ajax Search Interface Insert Records into the Database Edit (Update) Database Records Reusing Code Using Session Variables for Password Protection Tracking User Information with Cookies (optional) Sending email with <cfmail> (optional) Appendicies Prerequisites No previous database or programming experience is required. Knowledge of HTML is all you will need. Duration Three days Due to the nature of this material, this document refers to numerous hardware and software products by their trade names. References to other companies and their products are for informational purposes only, and all trademarks are the properties of their respective companies. It is not the intent of ProTech Professional Technical Services, Inc. to use any of these names generically PT5988_CORECOLDFUSION8.DOC "Charting the Course ... ... to Your Success!" Core ColdFusion 8 Course Outline I. Introduction to ColdFusion A. Static pages vs. Dynamic pages B. Server-side Web Technologies C. Database Alphabet Soup: ODBC/JDBC, DSNs and SQL D. Course Objectives and Prerequisites E. Introduction to Course Project II. ColdFusion Basics A. Using CFML B. Code Editors – Dreamweaver vs. HomeSite+ C. Dreamweaver 8 Interface D. Arguments for use of Dreamweaver E. HomeSite+ / ColdFusion Studio Interface F. Arguments for use of HomeSite+ / ColdFusion Studio G. Tag Editing Dialog Boxes H. Embedded Tag Help I. Using ColdFusion Comments J. Creating Variables K. <cfset> and <cfoutput> L. Variable Scope/Prefixes M. Built-in ColdFusion Functions N. Insert Expression (HomeSite+ / ColdFusion Studio specific) O. CF Function Reference (Dreamweaver specific) P. Demo: Built-in Functions Q. Demo: Date / Time Functions R. Using <cfinclude> to reuse code S. Demo: Create Header and Footer with <cfinclude> T. Exercise 1: Build Dynamic Page Footer using Variables and Date Functions III. Dynamic Data: Querying the Database A. Database Basics B. Introduction to SQL C. Select Statement D. Update Statement E. Insert Statement F. Delete Statement G. Data Source Name (DSN) / Remote Development Server (RDS) H. I. J. K. L. M. N. O. P. Q. The DSN Used in This Class: movieList Course Project Database Querying the database with <cfquery> <cfdump> for Quick Output Exercise 2: Query the database Customizing Display with <cfoutput> Demo: Using <cfoutput> Building Dynamic Tables Shortcut: <cftable> Shortcut: Dynamic Table Tool (in Dreamweaver) R. Exercise 3: Display Resulting Records manually with <cfoutput> IV. Creating a Drill-down Interface A. Passing Variables between Pages B. “Two-page method” C. Demo: Pass Variables via Links D. Demo: List of Actors with links E. Receive Variables through the URL F. Using a WHERE clause in a SQL Statement G. Exercise 4: Drill-down for More Detail V. Conditional Statements and Forms A. Conditional Statements B. <cfif>, <cfelseif> and <cfelse> C. Comparison Operators D. Operator E. Description F. Demo: Conditional Statements G. Using the isDefined() function H. Exercise 5: Conditional Statements – Data Validation I. HTML Form Review J. Demo: Pass Variable through a Form K. Exercise 6: Process Form Submission L. Self-Submitting Forms M. Using the <cfparam> tag to set a default value N. Fusebox: Perhaps the Ultimate Selfsubmitting Form O. Exercise 7: Self-submitting Form P. Dynamically Populating Select Lists Q. HTML Review: <select> tags R. Demo: Dynamic Select List Due to the nature of this material, this document refers to numerous hardware and software products by their trade names. References to other companies and their products are for informational purposes only, and all trademarks are the properties of their respective companies. It is not the intent of ProTech Professional Technical Services, Inc. to use any of these names generically PT5988_CORECOLDFUSION8.DOC "Charting the Course ... ... to Your Success!" Core ColdFusion 8 Course Outline (cont’d) S. Introducing the <cfform> Tag T. Shortcut: <cfselect> U. Exercise 8: Create a Dynamic Select List V. CFForm W. Masks X. Automatic Form Validation VI. ColdFusion and Ajax A. Introduction to JavaScript and Ajax B. Ajax Controls C. Demo: Using <cfgrid> to page through records D. Exercise 9: Paging through Records with <cfgrid> VII. Search Interface A. Creating a Search Interface B. Demo: Using the LIKE clause C. Using % and _ in a LIKE Statement D. Demo: Building Dynamic SQL Statements E. Exercise 10: Create a Search Interface VIII. Insert Records into the Database A. Inserting Records B. SQL Insert Statement C. Demo: Insert Record Step 1 – the Form D. Insert Record Step 2 – the Insert E. Shortcut: <cfinsert> F. Redirect Users with <cflocation> G. Important note about <cflocation>! H. Exercise 11: Insert a New Actor in the Database I. Automated Form Validation J. Client-side vs. Server-side validation: When does the validation code run? K. Exercise 12: Automatic Client-side (or Server-side) Form Validation IX. Edit (Update) Database Records A. Updating records B. SQL UPDATE Statement Review C. Demo: Update Record Page 1 – select the record to edit D. Passing the Primary Key E. Page 2 – View Current Data in a Form F. Page 3 – Perform the Update to the Database G. Shortcut: <cfupdate> H. Exercise 13: Edit a Record I. Deleting Records J. Note on Deleting records K. Review of the SQL Delete Statement L. “Deleting” without deleting M. No <cfdelete>! X. Reusing Code A. Reusing code with <cfinclude> and <cflocation> B. Custom Tags C. Demo: custom tags D. Where to store Custom Tags E. Demo: Custom Tag with Parameters F. CALLER and ATTRIBUTE scopes G. Using <cfmodule> H. A Note about CFX tags I. Exercise 14: Calling a Custom Tag to Display a List of Years J. User Defined Functions (UDFs) K. Creating UDFs with the <cffunction> tag L. Using ColdFusion Components (CFCs) M. Creating Components N. Calling or Invoking Components O. Passing Arguments to Components P. The Component Code Q. The main CFML page R. View a Component directly in the browser S. Exercise 15: UDFs XI. Using Session Variables for Password Protection A. Session Variables B. Creating Password Protected Pages C. Password-protect.cfm (the included page) D. demo-password-form.cfm E. Application.cfm F. Locking Session and Application variables with <cflock> Due to the nature of this material, this document refers to numerous hardware and software products by their trade names. References to other companies and their products are for informational purposes only, and all trademarks are the properties of their respective companies. It is not the intent of ProTech Professional Technical Services, Inc. to use any of these names generically PT5988_CORECOLDFUSION8.DOC "Charting the Course ... ... to Your Success!" Core ColdFusion 8 Course Outline (cont’d) G. Exercise 16: Password Protecting Pages (optional) XII. Tracking User Information with Cookies (optional) A. Demo: setting cookies B. Note: When Using Cookies and ColdFusion 5.0 C. Exercise 17: Cookies XIII. Sending email with <cfmail> (optional) A. Using ColdFusion to Send Email B. <cfmail> Tag Syntax C. Demo: Sending an email D. Exercise 18: Sending Automated Emails XIV. Appendicies A. Appendix A: Resources B. Appendix B: Set-up Notes C. Appendix C: Create a Dreamweaver “Site” D. Location of our course files E. Site Creation – Basic F. The Advanced Tab – Additional Categories: G. Site Files Panel H. “Create a Site” vs. “FTP or RDS Server Connection” 224 I. Appendix D: Selecting Among ColdFusion Code Reuse Methods Due to the nature of this material, this document refers to numerous hardware and software products by their trade names. References to other companies and their products are for informational purposes only, and all trademarks are the properties of their respective companies. It is not the intent of ProTech Professional Technical Services, Inc. to use any of these names generically PT5988_CORECOLDFUSION8.DOC