ColdFusion 9 Developer Tutorial
图书信息
| 作者 | John Farrar |
| 出版社 | Packt Publishing |
| ISBN | 9781849690256 |
| 出版时间 | 2010-07-26 |
| 字数 | 222.9万 |
| 分类 | 进口书,外文原版书,电脑,网络 |
读书简介
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. 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.
目录
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
Setting page defaults
HTML links
Introduction to lists and loops
Understanding arrays
Conditional processing with If/
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
Border example
HBox/VBox example
Tab example
Menus and tool tips
Styling notes
Tips
Map interaction
Summary
9. CF AJAX Forms
AJAX forms
Grid paging
Grid updates and deletes
Linked grids
Binding page elements
Binding immediately upon load
The date requestor
The autosuggest box
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
- 难惹(第2卷)(梦萌)
- 软件需求最佳实践——SERU过程框架原理与应用(典藏版)(徐锋)
- “新时代万有文库”公羊传(刘跃进)
- 502(暂无)
- 热处理工程师理论基础(刘宗昌)
- Téli rege(William Shakeapeare)
- 区块链编程((美)吉米·宋(Jimmy Song))
- 做事先做人(李元秀 主编)
