万本电子书0元读

万本电子书0元读

顶部广告

ColdFusion 9 Developer Tutorial电子书

售       价:¥

0人正在读 | 0人评论 9.8

作       者:John Farrar

出  版  社:Packt Publishing

出版时间:2010-07-26

字       数:222.9万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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

<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

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部