ColdFusion 9 Developer Tutorial
eBook - ePub

ColdFusion 9 Developer Tutorial

John Farrar

Share book
  1. 388 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

ColdFusion 9 Developer Tutorial

John Farrar

Book details
Book preview
Table of contents
Citations

About This Book

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. However, developing rich and robust web applications can be a real challenge as it involves multiple processes.

With this practical guide, you will learn how to build professional ColdFusion applications. Packed with example code, and written in a friendly, easy-to-read style, this book is just what you need if you are serious about ColdFusion.

This book will give you clear, concise, and practical guidance to take you from the basics of ColdFusion 9 to the skills that will make you a ColdFusion developer to be reckoned with. It also covers the new features of ColdFusion 9 like ORM Database Interaction and CF Builder.

ColdFusion expert John Farrar will teach you 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 9.

Get up to speed in ColdFusion and learn how to integrate it with other Web 2.0 technologies

Approach

This book is a fast-paced tutorial to developing ColdFusion applications, with an emphasis on real-world skills. Packed with examples and careful explanations, the book leads you through all the topics relevant to today's ColdFusion developer.

Who this book is for

This book is for web developers working with ColdFusion 9. If your goal is to get a good grounding in the basics of the language as quickly as possible and put a site together quickly, this book is ideal for you. This book will also help you if you want to learn more about professional programming of ColdFusion.

No prior knowledge of ColdFusion is expected, but basic knowledge of general web and software development skills is assumed.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is ColdFusion 9 Developer Tutorial an online PDF/ePUB?
Yes, you can access ColdFusion 9 Developer Tutorial by John Farrar in PDF and/or ePUB format, as well as other popular books in Ciencia de la computación & Desarrollo de aplicaciones. We have over one million books available in our catalogue for you to explore.

Information

Year
2010
ISBN
9781849690249

ColdFusion 9 Developer Tutorial


Table of Contents

ColdFusion 9 Developer Tutorial
Credits
About the Author
About the Reviewers
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Web Pages—Static to Dynamic
Turning HTML into a dynamic web page
HTML requests
ColdFusion requests
Comments
Variable output
Functions
Understanding and using simple variables
Variable types
Integers
Strings
Decimals
Additional functions
Find and FindNoCase
Understanding structures
CGI variables
Let's get interactive
URL variables
Exception handling
Standard error exception
<CFTRY> and <CFCATCH>
Setting page defaults
HTML links
Introduction to lists and loops
Understanding arrays
Conditional processing with If/<cfif>
Conditional processing with switch
Summary
2. Basic CFCs and Database Interaction
Our first CFC
Our first object
Product (object)
Using an object constructor
Connecting to a database
Returning data from the CFC
Making our data query flexible
The basic data object concept
Object method access control
Summary
3. Power CFCs and Web Forms
The practice of protecting access
Web forms introduction
Managing our product data
Getting data to our edit page
Saving our data
Improving page flow
Adding a new record
Let's look under the hood
Summary
4. ORM Database Interaction
Introduction to ORM in ColdFusion
ORM-enabled application configuration
ORM-enabled CFCs
Understanding entities
Working with entity-object relationships
Many-to-many relationships
Working with relational data
ORM functions
Summary
5. Application, Session, and Request Scope
Life span
Introducing the Application.cfc object
Application variables
The start methods
Application start method—onApplicationStart()
Session start method—onSessionStart()
Request start method—onRequestStart()
The end methods
Request end method—onRequestEnd()
Session end method—onSessionEnd()
Application end method—onApplicationEnd()
On Error method—onError()
Scope visibility
Practical application
Universal datasource
Mappings per application
Custom tag paths per application
Summary
6. Authentication and Permissions
How ColdFusion recognizes users
Custom authentication (additional power)
Authentication data model
Customizing authentication
Extra notes
Summary
7. CFScript
Script basics
Variables
Switch/case
If/then/else
For loops
For/in loops
Do/while loops
While loops
Exception handling
Throw/abort
New functions/commands in CF9
Summary
8. CF AJAX User Interface
Changing times
HTML-based websites
Server-side languages
Browser-side applications
Flash
JavaScript
ColdFusion AJAX
Layout
<cfdiv />
<cflayout />
Border example
HBox/VBox example
Tab example
<cfpod />
<cfwindow />
Menus and tool tips
<cfmenu />
<cftooltip />
Styling notes
Tips
Map interaction
Summary
9. CF AJAX Forms
AJAX forms
<cfgrid />
Grid paging
Grid updates and deletes
Linked grids
<cfinput />
Binding page elements
Binding immediately upon load
The date requestor
The autosuggest box
<cfselect />
<cftextarea />
<cftree />
The directory tree
Message boxes
Progress bar
Summary
10. CF AJAX Programming
Binding
On-page binding
CFC binding
JavaScript binding
URL binding
Bind with event
Extra binding notes
Multiple radio buttons or checkboxes and multiple select
Spry binding
CFAJAXProxy
CFAJAX proxy binding
CFC proxy class objects
Client debugging
Firebug
Built-in debugging
Logging features
Customization
Automatically wired AJAX links
Execute JavaScript after loading content
Other cool commands
Post for CFAJAX calls
CFAJAX browser JavaScript API overview
Summary
11. Introduction to Custom Tags
Different forms of code reuse
CFCs
CFInclude
Custom tags
Our first custom tag
Custom header/footer tags
Nested tags
CFInclude from custom tags
Templates versus skins
Managing custom tags
CFModule approach
Tag library approach
Summary
12. ColdFusion Powered Views
What is open source?
The fun factor
Installing the library
Getting started
Happily separated
Manipulate DOM from server-side code
Turning lemons to lemonade
Separation complete
Fun with lists
Select list tag
Other list tags
Better form coding
Metadata
Smart form modes
Edit mode
Add mode
View mode
Style simplified
But wait, there's more!
Custom list item rendering
Module render option
Summary
13. Control Logic Processing
The code side of applications
The model
The controller
Shared variables
Processing request events
Event model for the coprocessor
onPageStart() method
onFirstCall() method
onPostBack() method
Form modes
beforeViewCall() method
onPageEnd() method
Remote AJAX events
Data versatility
Lists
Array of structures
Modified data field names
Query handling
Personal extension of COOP
Summary
14. Guide to Unit Testing
When to test
Mission critical
Test-driven development
Regression testing
Installing our testing software
Understanding assertions
First test class
Multiple tests
HTML view
Data view
Built-in assertions
MXUnit assertion extensions
Testing private methods
Testing included files and custom tags
Variable testing
Exception testing
A son's view of testing
Summary
A. Beyond this Book
Areas of interest
Perspectives
Business perspective
Persona reviews
Milestones
Design/marketing perspective
Developer perspective
Current technologies
AJAX
Flash (Flex/AIR)
Future
HTML 5
Devices
Scale versus implementation
Standards
Libraries
Size
Features
Begin with the end in mind
Research
Frameworks
Methodologies
B. Tools and Resources
AJAX
Firebug
jQuery
Analytics
Google webmaster tools
Coding
Conferencing and collaboration
Acrobat.com
Google Docs
GoToMeeting/Webinar
Slide-sharing sites
Data-management tools
Graphics creation/acquisition
Camtasia Studio
Color Schemer
Fireworks
Lightroom
SnagIt
Open source libraries
Project management
FreshBooks
Project Tracker
Source control
Usability
Morae
Virtual development box
XML
Index

ColdFusion 9 Developer Tutorial

Copyright © 2010 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of...

Table of contents