You are previewing ColdFusion 8 Developer Tutorial.
O'Reilly logo
ColdFusion 8 Developer Tutorial

Book Description

An intense guide to creating professional ColdFusion web applications: get up to speed in ColdFusion and learn how to integrate with other web 2.0 technologies

  • Fast-paced guide to important ColdFusion development topics

  • Packed with example code and real-world knowledge

  • Coverage of using AJAX in ColdFusion

  • Also covers ColdFusion 8 Update 1

  • In Detail

    Adobe ColdFusion is an application server, renowned for rapid development of dynamic websites, with a straightforward language (CFML), powerful methods for packaging and reusing your code, and AJAX support that will get developers deep into powerful web applications quickly.

    This book is the most intense guide to creating professional ColdFusion applications available. Packed with example code, and written in a friendly, easy-to-read style, this book is just want you need if you are serious about ColdFusion.

    This book will give you clear, concise and, of course, practical guidance to take you from the basics of ColdFusion 8 to the skills that will make you a ColdFusion developer to be reckoned with.

    ColdFusion expert John Farrar will teach you how about the basics of ColdFusion programming, application architecture, and object reuse, before showing you a range of topics including AJAX library integration, RESTful Web Services, PDF creation and manipulation, and dynamically generated presentation files that will make you the toast of your ColdFusion developer town.

    This book digs deep with the basics, with real-world examples of the how and whys, to get more done faster with ColdFusion 8.

    This book also covers the new features of ColdFusion 8 Update 1.

    Table of Contents

    1. ColdFusion 8 Developer Tutorial
      1. ColdFusion 8 Developer Tutorial
      2. Credits
      3. About the Author
      4. About the Reviewers
      5. Preface
        1. What This Book Covers
        2. What You Need for This Book
        3. Who This Book Is For
        4. Conventions
        5. Reader Feedback
        6. Customer Support
          1. Downloading the Example Code for the Book
          2. Errata
          3. Questions
      6. 1. Web Pages—Static to Dynamic
        1. Turning HTML into a Dynamic Web Page
        2. Understanding and Using Simple Variables
        3. Understanding Structures
        4. Let Us Get Interactive
        5. Setting Page Defaults
        6. Introduction to Lists and Loops
        7. Understanding Arrays
        8. Conditional Processing with If
        9. Conditional Processing with Switch
        10. Summary
      7. 2. Basic CFCs and Database Interaction
        1. Our First CFC
        2. Our First Object
          1. Product (object)
        3. Using an Object Constructor
        4. Connecting to a Database
        5. Returning Data from the CFC
        6. Making Our Data Query Flexible
        7. The Basic Data Object Concept
        8. Object Method Access Control
        9. Summary
      8. 3. Power CFCs and Web Forms
        1. The Practice of Protecting Access
        2. Web Forms Introduction
        3. Managing Our Product Data
        4. Getting Data to Our Edit Page
        5. Saving Our Data
        6. Improving Page Flow
        7. Adding a New Record
        8. Let Us Look Under the Hood
        9. Summary
      9. 4. Application, Session, and Request Scope
        1. Life Span
        2. Introducing the Application.cfc Object
        3. Application Variables
        4. The Start Methods
          1. Application Start Method
          2. Session Start Method
          3. Request Start Method
        5. The End Methods
          1. Request End Method
          2. Session End Method
          3. Application End Method
          4. On Error Method
        6. Scope Visibility
        7. Practical Application
        8. Mappings per Application
        9. Custom Tag Paths per Application
        10. Summary
      10. 5. Introduction to Custom Tags
        1. Different Forms of Code Reuse
          1. CFCs
        2. Custom Tags
          1. CFInclude
          2. Our First Custom Tag
        3. Custom Header/Footer Tags
        4. Nested Tags
        5. CFInclude from Custom Tags
        6. Templates versus Skins
        7. Managing Custom Tags
        8. CFModule Approach
        9. Tag Library Approach
        10. Summary
      11. 6. Better Interfaces for JavaScript Libraries
        1. Thickbox Library HTML Style
        2. ColdFusion-Powered Thickbox
        3. Where Am I? (via Google Maps)
        4. ColdFusion JavaScript
          1. Multiple State Form Items
            1. Inside the Fancy Form Tag
        5. Summary
      12. 7. Authentication and Permissions
        1. How ColdFusion Recognizes Users
        2. Custom Authentication (Additional Power)
          1. Authentication Data Model
          2. How to Use Advanced Authentication
        3. Extra Notes
        4. Summary
      13. 8. CF AJAX User Interface
          1. HTML-Based Websites
          2. Server-Side Languages
          3. Browser-Side Applications
            1. Flash
            2. JavaScript
        1. ColdFusion AJAX
          1. Layout
            1. <cfdiv />
            2. <cflayout />
              1. Border Example
              2. HBox/VBox Example
              3. Tab Example
            3. <cfpod />
            4. <cfwindow />
          2. Menus and Tool Tips
            1. <cfmenu />
            2. <cftooltip />
        2. Styling Notes
        3. Tips
        4. Summary
      14. 9. CF AJAX Forms
        1. Forms
          1. <cfgrid />
          2. Grid Paging
        2. Grid Updates and Deletes
        3. Linked Grids
          1. <cfinput />
        4. Binding Page Elements
          1. Binding Immediately upon Load
        5. The Date Requestor
        6. The Autosuggest Box
          1. <cfselect />
          2. <cftextarea />
          3. <cftree />
        7. The Directory Tree
        8. Summary
      15. 10. CF AJAX Programming
        1. Binding
          1. On Page Binding
          2. CFC Binding
          3. JavaScript Binding
          4. URL Binding
        2. Bind with Event
        3. Extra Binding Notes
        4. Multiple Radio Buttons or Check Boxes and Multiple Select
          1. Spry Binding
        5. CFAJAXProxy
        6. CFAJAX Proxy Binding
        7. CFC Proxy Class Objects
        8. Client Debugging
        9. Firebug
        10. Built-In Debugging
          1. Logging Features
          2. Customization
          3. Automatically Wired AJAX Links
          4. Execute JavaScript after Loading Content
          5. Other Cool Commands
          6. Post for CFAJAX Calls
        11. Summary
      16. 11. Working with PDF
        1. Generating PDF Pages
          1. Our First PDF Page Conversion
          2. Splitting into Sections
          3. Adding Headers and Footers and Variables
          4. Adding Page Breaks and Variables
          5. Adding Bookmarks
          6. Saving PDF Documents
        2. Printing from the Server
        3. Working with PDF Forms
        4. Populating PDF Forms with Data
        5. Reading Data from PDF Forms
        6. Manipulating PDF Documents
          1. Merging Documents
          2. Deleting Pages
        7. Encrypting PDF Documents
        8. Generating Thumbnails
        9. Adding Watermarks
        10. Final Thoughts
        11. Summary
      17. 12. Building Search Abilities
        1. Database Searching
        2. Verity Search Solutions
        3. Built-In Search Engine
          1. Creating a Collection
          2. Indexing a Collection
          3. Searching a Collection
            1. The Search Form
            2. The Results Page
            3. Search Techniques
            4. PDF Linking to Searches
            5. Suggestions
        4. Integrating Third-Party Searching
        5. Google Details
        6. Custom Search Engines (Google)
          1. On-The-Fly Search Engine
          2. Simple Search
              1. Search Types
              2. Site Restricted
              3. Local Search
        7. Summary
      18. 13. Working with Files, Email, and Images
        1. Working with Files
          1. Uploading Files
          2. Local File Control
            1. Write File
            2. Read File
            3. Rename File
            4. Append File
            5. Read File via Loop
        2. Working with Email
        3. Working with Images
        4. Image Information
        5. Summary
      19. 14. Feeds, REST Services, and Web Services
        1. Collaboration
          1. Flickr
          2. Feeds
          3. RSS
            1. CDF
            2. JSON
            3. SQL
          4. Introduction to REST Services
        2. SOAP Web Services
        3. Summary
      20. 15. Building Dynamic Reports
        1. Traditional Web Page Reporting
          1. Simple Report
          2. Grouped Data
          3. Drill-Down Reporting
        2. Output Formats
          1. PDF Output
          2. Excel Output
          3. CVS Output
          4. XML Output
          5. JSON Output
        3. Using CFReport and Report Builder
        4. Summary
      21. 16. Dynamically Generated Web Presentations
        1. Introduction to CFPresentation
        2. Mixing in the Media
        3. Caching the Contents
        4. Dynamic Benefits
          1. Scenario 1: Sales Force
          2. Scenario 2: Client-Specific Presentations
          3. Scenario 3: Live Audience Sensitive Content
        5. Summary
      22. A. Getting Your System Ready for Development
        1. Tools
        2. AJAX
        3. Ant
        4. Database Engines
        5. Database Tools
        6. Media Tools
          1. Audio Software
          2. Image Software
          3. Video Software
        7. Reporting
        8. SVN
        9. Unit Testing
        10. Conclusions
      23. B. Resources to Build Your Skills
        1. Blogs
        2. ColdFusion Conferences
        3. Coding Frameworks
        4. General ColdFusion Sites
        5. Libraries and Tools
          1. Aspect or IoC or DI
        6. Content Handling/Generation
        7. Database
        8. JavaScript
        9. Project Management
        10. Script
        11. Search
        12. Site Integration APIs
        13. Unit Testing or Debugging
        14. XML Tools and Products
        15. Other Notable Works