You are on page 1of 28

Color profile: Generic CMYK printer profile

Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2
Blind Folio i

®
Dreamweaver MX:
The Complete Reference

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:58:56 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2
Blind Folio ii

About the Authors


Ray West is the Vice President and CIO of
Workable Solutions, Inc., an Orlando-based
company specializing in the Web-based
administration of health care alliances. He
has been building data-driven Web applications
since 1995 including work for HBO, NBC, and
USAToday, and is coauthor of the best-selling
book Dreamweaver UltraDev 4: The Complete
Reference (Osborne, 2001). Ray lives in Orlando
with his wife and son.

Tom Muck is co-author of four books, including


the bestseller Dreamweaver UltraDev4: The
Complete Reference. He is an extensibility expert
focused on the integration of Macromedia
products with ColdFusion and other languages,
applications, and technologies. Tom has been
recognized for this expertise as the 2000 recipient
of Macromedia’s Best UltraDev Extension
Award; he also authors articles and speaks at
conferences on this and related subjects. As
Senior Applications Developer for Integram
in Northern Virginia, Tom develops back-end
applications for expedited, electronic
communications. Tom runs the Basic-UltraDev
site with Ray West and is a founding member
of the DW Team (www.dwteam.com).

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:58:56 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2
Blind Folio iii

Dreamweaver MX: ®

The Complete Reference

Ray West and Tom Muck

McGraw-Hill/Osborne
New York Chicago San Francisco
Lisbon London Madrid Mexico City
Milan New Delhi San Juan
Seoul Singapore Sydney Toronto

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:58:57 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter
Blind Folio FM:iv

McGraw-Hill/Osborne
2600 Tenth Street
Berkeley, California 94710
U.S.A.
To arrange bulk purchase discounts for sales promotions, premiums, or fund-raisers,
please contact McGraw-Hill/Osborne at the above address. For information on
translations or book distributors outside the U.S.A., please see the International
Contact Information page immediately following the index of this book.
Dreamweaver® MX: The Complete Reference
Copyright © 2002 by The McGraw-Hill Companies. All rights reserved. Printed in
the United States of America. Except as permitted under the Copyright Act of 1976,
no part of this publication may be reproduced or distributed in any form or by any
means, or stored in a database or retrieval system, without the prior written permission
of publisher, with the exception that the program listings may be entered, stored, and
executed in a computer system, but they may not be reproduced for publication.
1234567890 DOC DOC 0198765432
ISBN 0-07-219514-2

Publisher Copy Editor


Brandon A. Nordin Darren Meiss
Vice President & Associate Publisher Proofreaders
Scott Rogers Claire Splan, Mike McGee
Acquisitions Editor Indexer
Jim Schachterle Claire Splan
Project Editor Computer Designers
Jennifer Malnick Carie Abrew, Melinda Moore Lytle,
Lauren McCarthy
Acquisitions Coordinator
Timothy Madrid Illustrators
Michael Mueller, Lyssa Wald
Technical Editor
Massimo Foti Series Design
Peter F. Hancik

This book was composed with Corel VENTURA™ Publisher.

Information has been obtained by McGraw-Hill/Osborne from sources believed to be reliable. However, because of the
possibility of human or mechanical error by our sources, McGraw-Hill/Osborne, or others, McGraw-Hill/Osborne does not
guarantee the accuracy, adequacy, or completeness of any information and is not responsible for any errors or omissions or
the results obtained from the use of such information.

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:58:57 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter
FM:v

Contents at a Glance
Part I Getting Started with Dreamweaver MX

1 And Then There Was One . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3


2 Configuring Your Environment . . . . . . . . . . . . . . . . . . . . . . . . . 21
3 Dreamweaver MX Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
4 Building Your First Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
5 Adding Pages to Your Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
6 Publishing Your Site to the Internet . . . . . . . . . . . . . . . . . . . . . . 131

Part II Web Site Design and Construction

7 Designing and Planning Your Site . . . . . . . . . . . . . . . . . . . . . . . 149


8 Defining Your Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
9 Advanced Page Design Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
10 Fireworks MX Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:58:57 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter

vi Dreamweaver MX: The Complete Reference

11 Flash Integration Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253


12 Cascading Style Sheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
13 JavaScript and DHTML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293

Part III An Introduction to Web Scripting

14 Developing a Web Application . . . . . . . . . . . . . . . . . . . . . . . . . . 339


15 Active Server Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
16 Java Server Pages in the Dreamweaver MX Environment . . . 385
17 ColdFusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425
18 PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489
19 ASP.NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 537

Part IV Adding Database Features to Your Site

20 Making a Database Connection . . . . . . . . . . . . . . . . . . . . . . . . . 555


21 Designing a Relational Database . . . . . . . . . . . . . . . . . . . . . . . . 591
22 Setting Up Your Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 611
23 An Overview of the Structured Query Language . . . . . . . . . . 639
24 Adding Database Features to Your Site . . . . . . . . . . . . . . . . . . . 669
25 User Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 709

Part V Advanced Data Integration

26 Advanced Database Features . . . . . . . . . . . . . . . . . . . . . . . . . . . 747


27 Advanced Scripting Topics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 777
28 Server-Side Flash Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . 799
29 E-Commerce with Dreamweaver MX . . . . . . . . . . . . . . . . . . . . 829

Part VI Getting the Most Out of Dreamweaver MX

30 Extensions and the Extension Manager . . . . . . . . . . . . . . . . . . . 869


31 Dreamweaver MX Extensibility Model . . . . . . . . . . . . . . . . . . . 895
32 Building Server Behavior Extensions . . . . . . . . . . . . . . . . . . . . . 969

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:58:58 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter
FM:vii

Contents
Foreword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv

Part I
Getting Started with Dreamweaver MX
1 And Then There Was One . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
The Internet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
The History of the Internet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
The World Wide Web . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
TCP/IP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Internet Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Transmission Control Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Hypertext Transfer Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Hypertext Markup Language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
The Web Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
The Last Few Years . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
WYSIWYG HTML Editors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Dreamweaver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Data Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
UltraDev . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Summary: And Then There Was One . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

vii

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:58:58 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter

viii Dreamweaver MX: The Complete Reference

2 Configuring Your Environment . . . . . . . . . . . . . . . . . . . . . . . . 21


Picking Your Team . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
The Web Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
The Application Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
The Data Store . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
The Staging Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
The Live Data Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Server Technologies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Active Server Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
ASP.NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Java Server Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
ColdFusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Popular Web Servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Microsoft . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Personal Web Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Internet Information Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Apache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
iPlanet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Popular Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Microsoft Access and ISAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Database Servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Popular Database Servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

3 Dreamweaver MX Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Working with Dreamweaver MX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
The Site Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Defining a Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Managing Site Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Adding New Pages to Your Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Managing Your Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
The Document Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
The Panels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Dreamweaver’s Menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
The File Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
The Edit Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
The View Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
The Insert Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
The Modify Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
The Text Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
The Commands Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
The Site Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
The Window Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
The Help Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86

4 Building Your First Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87


Constructing Web Pages in Dreamweaver . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Behaviors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:58:58 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter

Contents ix

The Home Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98


Fireworks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106

5 Adding Pages to Your Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107


Creating Pages from Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Using the Assets Panel to Create Templated Pages . . . . . . . . . . . . 112
Adding Templates to Existing Pages . . . . . . . . . . . . . . . . . . . . . . . . 113
Applying Templates to Templated Pages . . . . . . . . . . . . . . . . . . . . 114
Managing Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Basic Page Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Rollover Images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
Form Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Dreamweaver Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Behaviors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Reference Materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
The Assets Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130

6 Publishing Your Site to the Internet . . . . . . . . . . . . . . . . . . . . . 131


FTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
FTP from the Command Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
FTP in Dreamweaver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Getting and Putting Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Synchronizing Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
RDS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
Versioning and Source Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
Check In/Check Out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Microsoft Visual SourceSafe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
WebDAV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Other FTP Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146

Part II
Web Site Design and Construction
7 Designing and Planning Your Site . . . . . . . . . . . . . . . . . . . . . . 149
Planning and Designing Your Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
The Purpose and Goal of the Site . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
Your Target Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
The Tools and Platforms Available to You . . . . . . . . . . . . . . . . . . . 154
The Site’s Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
Your Navigation Scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
Development Time and Cost . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:58:59 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter

x Dreamweaver MX: The Complete Reference

Design Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157


Navigation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Usability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Media . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159

8 Defining Your Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161


Choosing the Server Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
ColdFusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
ASP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
JSP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
ASP.NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
Choosing Your Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
Microsoft Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
Microsoft SQL Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
MySQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
DB2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
PostgreSQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Other Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
The Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Managing Site Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
Defining a New Site with the Site Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
Defining a New Site in Advanced View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
Local Info . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
Remote Info . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
Check-in/Check-out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
Testing Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
Cloaking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
Design Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
Site Map Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
File View Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
Preplanning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
Site Reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
Synchronizing the Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Adding New Pages to Your Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Adding a Database to the Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Database Permissions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Setting Up Data Sources for the Site . . . . . . . . . . . . . . . . . . . . . . . . . 192
Other Data Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
Site-Wide Find/Replace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
Find In . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
Search For . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
Specific Tag: Using the Tag Replace Functionality . . . . . . . . . . . . 196
Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
Find/Replace Source Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
Open and Save Buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200

9 Advanced Page Design Tools . . . . . . . . . . . . . . . . . . . . . . . . . . 201


Advanced Template Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:58:59 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter

Contents xi

Nested Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202


Optional Regions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
Repeating Regions and Repeating Tables . . . . . . . . . . . . . . . . . . . . 204
Editable Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
Creating a Template Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
Snippets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Using Snippets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Creating Snippets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
The Tag Inspector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
Code View Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
Validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
Target Browser Check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
The Link Checker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231

10 Fireworks MX Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233


Quick Export . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
Reconstitute Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
Image Placeholders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
Editing from Dreamweaver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
Pop-Up Menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
Optimizing Graphics for the Web . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
File Formats for the Web . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
Slicing Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
Optimizing a Complex Image in Fireworks . . . . . . . . . . . . . . . . . . 245
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252

11 Flash Integration Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253


SWF Files in Dreamweaver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
Flash Properties and the Property Inspector . . . . . . . . . . . . . . . . . . 256
Flash Assets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Flash Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
Flash Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Flash Buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Generator Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
Editing ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
Shockwave . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
Controlling a Flash or Shockwave Movie . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
Built-In Dreamweaver Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
The JavaScript Integration Kit for Flash 5 . . . . . . . . . . . . . . . . . . . . 267
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270

12 Cascading Style Sheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271


Cascading Style Sheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
Using CSS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
Nested Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
CSS Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
Applying Cascading Style Sheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
External Style Sheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
Embedded Style Sheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
Inline Styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:58:59 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter

xii Dreamweaver MX: The Complete Reference

Applying CSS Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276


Cascading Your Style Sheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
Cascading Style Sheets in Dreamweaver MX . . . . . . . . . . . . . . . . . . . . . . . . . 277
Creating a New Style Sheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
Attaching a Style Sheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
Applying and Editing a Style Sheet . . . . . . . . . . . . . . . . . . . . . . . . . 288
Dreamweaver MX’s CSS Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291

13 JavaScript and DHTML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293


HTML, CSS, JavaScript, and the DOM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
History of JavaScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
Basic Language Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296
The DOM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301
Behaviors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304
The Behavior Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304
Adding a Behavior to a Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
Third-Party Behaviors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
Timelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
Inserting a Timeline in Your Page . . . . . . . . . . . . . . . . . . . . . . . . . . 331
Adding a Behavior to a Timeline . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
Starting and Stopping Timelines . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
Automating Path Creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
Timeline Hints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
JavaScript Debugger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335

Part III
An Introduction to Web Scripting
14 Developing a Web Application . . . . . . . . . . . . . . . . . . . . . . . . . 339
HTML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
Cascading Style Sheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
CGI Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
The C Language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344
Perl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
Other Scripting Languages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
The Problem with CGI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
HTML Templating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346
ASP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
JSP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
ColdFusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348
ASP.Net . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348

15 Active Server Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349


Active Server Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350
Client/Server Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
Getting User Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:59:00 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter

Contents xiii

The ASP Object Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354


The Request Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354
The Response Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364
The Session Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372
The Application Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
The Server Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
The ObjectContext Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
global.asa . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
The Languages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
Conditional Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384

16 Java Server Pages in the Dreamweaver MX Environment . . 385


The JSP Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386
The Java Programming Language in JSP . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
Variables in Java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388
Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390
Control Structures in Java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392
JSP Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
The request Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
The response Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397
The out Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398
The session Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398
The application Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400
The config Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401
The page Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401
The pageContext Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401
The exception Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401
The Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402
The page Directive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402
The include Directive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406
The taglib Directive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406
Serving the JSP Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 407
Using JSP with Dreamweaver MX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 410
The JSP Insert Bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 410
The Bindings Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411
The Server Behaviors Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 418
The Components Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 419
Using Tag Libraries in Dreamweaver MX . . . . . . . . . . . . . . . . . . . . 421
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423

17 ColdFusion ......................................... 425


The ColdFusion Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427
CFML: The ColdFusion Programming Language . . . . . . . . . . . . . . . . . . . . . 428
ColdFusion Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431
ColdFusion Variable Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433
The Pound Signs in ColdFusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434
Installing the ColdFusion Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 436
ColdFusion Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:59:00 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter

xiv Dreamweaver MX: The Complete Reference

The ColdFusion Administrator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444


Accessing the Functionality of the Administrator . . . . . . . . . . . . . 444
Learning the CFML Language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450
The Core ColdFusion Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450
CFScript and Its Use in Dreamweaver MX . . . . . . . . . . . . . . . . . . . 458
Advanced ColdFusion Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461
ColdFusion and Dreamweaver MX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469
The ColdFusion Bindings Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469
The Server Behaviors Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474
Server Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478
ColdFusion Code Generation in Dreamweaver MX . . . . . . . . . . . 478
ColdFusion MX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479
Web Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479
CFC: ColdFusion Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 482
XML Parsing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 485
ColdFusion Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 486
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487

18 PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489
The PHP Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490
Installing the Windows CGI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490
Building a Linux Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 500
The PHP Programming Language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 505
PHP Templating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 505
Variables in PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506
Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 508
Request Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 509
PHP Cookies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 511
PHP Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 511
New Methods of Referencing Variables . . . . . . . . . . . . . . . . . . . . . 513
Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 514
Control Structures in PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 516
Built-In Functions in PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519
Sending E-Mail with PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 525
Using PHP with MySQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 526
Using PHP with Dreamweaver MX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 529
History of PHP in Dreamweaver . . . . . . . . . . . . . . . . . . . . . . . . . . . 529
The Bindings Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 530
The Server Behaviors Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 532
PHP Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 534
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 535

19 ASP.NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 537
Moving from ASP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 538
The .NET Framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 539
Differences Between ASP and ASP.NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540
Structural Differences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540
Specific Differences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 542
ASP.NET Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 545
User Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 545
The BIN Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 545
The PageLoad Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 545

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:59:01 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter

Contents xv

PostBack . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 546
Web Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 546
VB.NET or C# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 546
Conditionals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 546
Looping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 547
Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 548
Dreamweaver’s .NET Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 549
Deploying Your Support Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 549
Data Binding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 550
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 551

Part IV
Adding Database Features to Your Site
20 Making a Database Connection . . . . . . . . . . . . . . . . . . . . . . . . 555
History of Dreamweaver Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556
The Database Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556
The Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 558
Types of Dreamweaver MX Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . 559
ASP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 559
ASP.NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 570
ColdFusion 4 and 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 572
ColdFusion MX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 577
PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 579
JDBC Connections for JSP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583
Getting the JDBC Drivers into Dreamweaver MX . . . . . . . . . . . . . 586
Macintosh Database Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587
Making a Successful Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 589

21 Designing a Relational Database . . . . . . . . . . . . . . . . . . . . . . . 591


What Is a Database? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 592
The Database Management System . . . . . . . . . . . . . . . . . . . . . . . . . 593
The Individual Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 595
Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 596
Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 597
Rows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 598
Designing a Relational Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 599
Your Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 600
Database Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 600
Use of the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 600
Database Functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 601
Database Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 605
Uniqueness and Keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 605
Candidate Keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 606
Primary Keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 607
Foreign Keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 607
Table Relationships . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609
One-to-One Relationships . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609
One-to-Many Relationships . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609
Many-to-Many Relationships . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:59:01 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter

xvi Dreamweaver MX: The Complete Reference

Database Normalization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609


Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 610

22 Setting Up Your Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 611


OLTP and OLAP Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 612
The Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 612
List the Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 613
Normalizing the Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 613
Typical Uses for the Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 622
Indexes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 627
Implementing the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 628
Deploying Your Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 632
Remote Access Databases on Windows NT and Windows 2000 . . 632
Database Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 636
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637

23 An Overview of the Structured Query Language . . . . . . . . . 639


Basic SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 640
The Select Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 642
Expressions and Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 645
Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 645
Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 648
Additional Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 649
Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 651
Date and Time Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 651
Aggregate Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 652
The Count Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 653
The Sum Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 653
The Avg Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 654
The Min and Max Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 654
Arithmetic Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 655
String Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 656
Clauses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 657
The Order By Clause . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 657
The Group By Clause . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 659
Joins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 660
Inner Joins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 660
Outer Joins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 661
Subqueries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663
The In Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663
The Embedded Select Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 664
Action Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 664
Insert Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 664
Update Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665
Delete Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665
Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 666
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 667

24 Adding Database Features to Your Site . . . . . . . . . . . . . . . . . . 669


Defining the Database Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 670
The Recordset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 672
Creating the Query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 673
Displaying the Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 675

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:59:01 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter

Contents xvii

Using the Dynamic Table Application Object . . . . . . . . . . . . . . . . 676


Sorting the Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 677
Navigating Through the Recordset . . . . . . . . . . . . . . . . . . . . . . . . . 678
Displaying the Record Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . 679
Master-Detail Page Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 679
Creating the Recordset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 679
Adding the Insert Master Detail Application Object . . . . . . . . . . . 682
The Repeat Region Server Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 685
Repeating HTML Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 686
Using Stored Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 699
Simple Stored Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 700
Modifying the Display Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 701
The Record Insertion Form Application Object . . . . . . . . . . . . . . . . . . . . . . . 703
Adding Administrator Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 704
Other Uses of the Bindings Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 707
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 708

25 User Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 709


Session Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 710
Adding a Validate Form Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . 712
Inserting a Custom JavaScript Function . . . . . . . . . . . . . . . . . . . . . 712
Testing for a Duplicate Username . . . . . . . . . . . . . . . . . . . . . . . . . . 716
Creating the failed_new_user and login_user Pages . . . . . . . . . . . 717
Server-Side Validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 724
ASP/VBScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 724
ASP/JScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 726
ColdFusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 726
PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 727
ASP.NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 728
JSP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 729
The Restrict Access to Page Server Behavior . . . . . . . . . . . . . . . . . . . . . . . . . 730
Log Out User . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 733
Inserting to the Database Using a Recordset Field . . . . . . . . . . . . . . . . . . . . . . 735
Writing the SQL Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 737
Adding the Company Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 741
The my_company Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 741
Inserting Company Records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 741
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 744

Part V
Advanced Data Integration
26 Advanced Database Features . . . . . . . . . . . . . . . . . . . . . . . . . . 747
Search Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 748
A Basic Search Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 748
Adding Advanced Search Features . . . . . . . . . . . . . . . . . . . . . . . . . 752
Adding Multiple Search Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . 755
Adding the my_company and find_a_seeker Pages . . . . . . . . . . . . . . . . . . . 767
Adding a Resumes Viewed Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 768
Hand-Coding a Session Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . 769
Adding Conditional Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 770

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:59:02 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter

xviii Dreamweaver MX: The Complete Reference

Adding a resumes_viewed Page to the Admin Section . . . . . . . . . . . . . . . . 772


Using Count(*) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 772
Adding the Error Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 775
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 776

27 Advanced Scripting Topics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 777


E-Mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 778
CDO Mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 778
JMail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 780
Other ASP E-mail Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 780
ColdFusion Mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 781
PHP Mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 783
.NET Mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 785
Controlling Where Script Is Run . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 785
The FileSystemObject Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 787
PHP File Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 790
ASP.NET File Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 791
Debugging and Troubleshooting Common Errors . . . . . . . . . . . . . . . . . . . . 792
Debugging Server-Side ASP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 796
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 798

28 Server-Side Flash Integration . . . . . . . . . . . . . . . . . . . . . . . . . . 799


Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 801
UI Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 801
UI Components Set 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 803
Charting Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 804
Using Dreamweaver for ActionScript Programming . . . . . . . . . . . . . . . . . . 805
Using Get and Post . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 805
Get . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 806
Post . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 810
Using XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 815
Flash Remoting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 818
Creating the ColdFusion Component . . . . . . . . . . . . . . . . . . . . . . . 819
Adding the Flash ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 821
Using Server-Side ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 826
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 827

29 E-Commerce with Dreamweaver MX . . . . . . . . . . . . . . . . . . . 829


The Shopping Cart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 830
The UltraDev Shopping Cart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 831
UltraCart II . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 831
Intellicart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 832
Charon Cart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 832
Cartweaver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 834
Other E-Store Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 836
Elements of the E-Store . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 836
The Cart Server Behaviors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 837
The Cart Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 838
The Database Structure and Other General Database Issues . . . . 838
The Database for the Acme Databases Site . . . . . . . . . . . . . . . . . . . 840
The Site Tree for Acme Databases . . . . . . . . . . . . . . . . . . . . . . . . . . 848
The About Us Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 852

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:59:02 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter

Contents xix

The Home Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 852


The SignUp Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 853
Implementing the Products Page and Detail Page . . . . . . . . . . . . . 855
The Cart and Empty Cart Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . 858
The Check Out Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 861
The Download Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 863
The Error Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 863
E-Mailing the Customer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 864
A Few Notes About Scaling the Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 865
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 865

Part VI
Getting the Most Out of Dreamweaver MX
30 Extensions and the Extension Manager . . . . . . . . . . . . . . . . . . 869
What Is an Extension? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 870
Extension Packages and the Extension Manager . . . . . . . . . . . . . . . . . . . . . . 874
The Extension Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 874
Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 876
The Macromedia Exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 876
Other Extension Sites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 879
Using Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 880
Tips for Using Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 881
Some Popular Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 882
Built-In Command Maker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 892
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 893

31 Dreamweaver MX Extensibility Model . . . . . . . . . . . . . . . . . . 895


Understanding Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 896
The Extension Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 898
Selections and Offsets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 900
Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 902
Dot Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 904
The Dreamweaver MX API Methods . . . . . . . . . . . . . . . . . . . . . . . . 905
Shared Folder Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 907
Configuration Folders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 915
Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 920
Modifying an Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 921
Object Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 922
The objectTag() Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 923
Display Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 930
Creating a Server Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 931
Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 942
Toolbars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 945
Floaters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 947
Data Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 951
Server Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 956
Packaging Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 962
Main Tag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 962
Products and Authors Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 963
Description of the Extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 964

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:59:02 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter

xx Dreamweaver MX: The Complete Reference

Putting Your Files into the Extension Package . . . . . . . . . . . . . . . . 964


Changing the Dreamweaver Menus . . . . . . . . . . . . . . . . . . . . . . . . 965
Wrapping Up the Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 966
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 967

32 Building Server Behavior Extensions . . . . . . . . . . . . . . . . . . . . 969


Steps for Building a Server Behavior Extension . . . . . . . . . . . . . . . . . . . . . . . 974
Your Final Code: The First Step . . . . . . . . . . . . . . . . . . . . . . . . . . . . 975
Creating the HTML File: The Interface . . . . . . . . . . . . . . . . . . . . . . 977
Adding Your Include Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 978
Defining Global Variables and Implementing the
initializeUI() Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 978
The Search String: Finding the Behavior in Your Document . . . . 979
Creating Group and Participant XML Files . . . . . . . . . . . . . . . . . . 980
Building Your PATT and MASK Variables . . . . . . . . . . . . . . . . . . . 982
Writing the Function Skeletons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 992
Implementing the canApplyServerBehavior() Function . . . . . . . . . . 993
Implementing the findServerBehaviors() Function . . . . . . . . . . . . . . 994
Implementing the applyServerBehavior() Function . . . . . . . . . . . . . 994
Implementing the inspectServerBehavior Function . . . . . . . . . . . . . 995
Cleaning Up: the analyzeServerBehavior Function . . . . . . . . . . . . . . 996
Implementing the deleteServerBehavior Function . . . . . . . . . . . . . . 996
Other Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 997
Where Do You Go from Here? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 998
Part 2: Using the Server Behavior Builder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 998
Creating a Server Behavior with the Builder . . . . . . . . . . . . . . . . . 999
Creating a Server Behavior with More Than One Participant . . . . . 1009
Creating a Translator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1010
Where Do You Keep Your Server Behaviors? . . . . . . . . . . . . . . . . . . . . . . . . 1016
Extending the Server Behavior Builder (SBB) . . . . . . . . . . . . . . . . . . . . . . . . . 1017
Extending the Server Behavior Template . . . . . . . . . . . . . . . . . . . . 1017
Adding Custom Server Behavior Builder Controls . . . . . . . . . . . . 1019
Server Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1021
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1022
A Few Last Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1022

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1023

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:59:03 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter
FM:xxi

Foreword
ne Tool.” That’s the phrase we used around here at Macromedia to define

“O the idea of combining the best of Dreamweaver, UltraDev, ColdFusion


Studio, and HomeSite into a single product. The reasoning behind it is
pretty clear if you look back to where we were just one year ago. If you took a look at
the Web development tool selection from Macromedia after the merger with Allaire,
things were a bit confusing, to say the least. We offered nine different stand-alone
products and “Studios” for HTML and Web application development.
All of these products made perfect sense given the climate they were developed in,
and the customer sets they intended to serve. But it turns out that Web development
had changed by the time all these products came under the Macromedia banner, and it
was time for Macromedia to build a tool that reacted to that change. In speaking with
Web developers about where they saw the future of Web development, three central
themes emerged pretty quickly: accessibility, maintainability, and reusability.
Accessibility is not just about building sites to be Section 508, or W3C level 2 compliant;
it’s about centering Web development efforts around the goals of the user, rather than
the goals of the company. The user experience on the Web was stagnating—everything
was still too hard, whether accessing the Web with a keyboard and a mouse, or with a
screenreader and touch pad. Something had to be done to make Web sites more usable.

xxi

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:59:03 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter

xxii Dreamweaver MX: The Complete Reference

Maintainability came through in the cries of Web developers to start building sites in
standard ways, using standard technologies. It was no longer about having the hippest,
coolest Web site built using whatever quirky coding techniques the nose-pierced, tattooed
Web developer decided to implement. Adult supervision has finally come to Web
development, and people want sites built in standard ways so that they can be developed
in a straightforward manner and passed on to teams who can maintain them without
ripping them apart to see what’s going on.
The idea of reusable frameworks and components has existed in the world of software
development for years, but it has just recently been brought to the Web development
arena. When we set out to build a new version of Dreamweaver, for example, we don’t
throw out the old version and start over, we build on top of what we already have.
Most major Web sites fail to do this, however. How many times have you seen a Web
site completely rebuilt from the ground up simply because the requirements of the site
outgrew the technology with which it was built? Finally, with technologies like J2EE,
.NET, and Web services, developers have frameworks around which they can build
their sites so that they don’t have to start all over every time a new requirement is
added, or a new corporate strategy is chosen.
Clearly, Web development is entering a new era, and it is time for a new tool to
step up to the plate and provide a complete development environment for building
professional sites. Dreamweaver MX is our attempt to do just that. Try as we might,
though, we rarely seem to get things correct on the first try, and a lot of credit for
Dreamweaver MX has to go to users like Ray and Tom for their patience and help
throughout the development cycle. Having a perspective from people like Ray and
Tom, who have to both use the product and explain it to all sorts of users, was
invaluable to us as we went from planning to beta to the final release you see before
you. Ray and Tom should stand up and take a good deal of credit for this release, and
I’m sure this volume of the Complete Reference will be a welcome addition to the
library of both seasoned veterans and those new to the Dreamweaver world. I welcome
all of you to this release of Dreamweaver, and hope that you’ll continue to send us
your feedback and requests so that the next version will be even better.

David Deming
Product Manager,
Dreamweaver
Macromedia

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:59:03 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter
FM:xxiii

Acknowledgments

he longer we do this, the longer the list of people we need to thank gets. We are

T truly appreciative of everyone in the Dreamweaver community who has been so


supportive of the things we have done. We hope that we continue to live up to
your expectations.
We have received a tremendous amount of support from the folks at Macromedia:
Matt Brown, Dave Deming, Tom Hale, Susan Morrow, Susan Marshall, Mike Downey,
and, of course, Sho, Randy, Sam, Lori, and the rest of the development team.
At Osborne, we could not do this without Jim Schachterle, Tim Madrid, Jenny Malnick,
Wendy Rinaldi, and Sherry Bonelli.
Tom continues to amaze me with how adept he is at learning new things and
explaining them clearly. I wish everyone could find such a partner. You could all do
great things.
And thank you mostly to my wife, Susan, and our son, Caleb. I hope you are half
as proud of me as I am of the two of you.
—Ray

xxiii

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:59:03 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter

xxiv Dreamweaver MX: The Complete Reference

The writing process is a collaborative effort and, as such, many hard-working and
supportive individuals need to be acknowledged. Thanks to everyone at Osborne for
being so helpful in making the book-writing and publishing process go so smoothly,
especially Jenny, Jim, and Tim.
My partner Ray provides the perfect complement to my writing. The book you see
in front of you is a combined effort that makes this reference complete. Ray’s initiative
and enthusiasm for new projects keeps us thriving. Thanks, Ray!
Massimo is the man when it comes to Dreamweaver, and he provides excellent
technical advice throughout the writing process. He is also a good friend and a guiding
light for the Dreamweaver community. Thanks, Massimo!
Everyone at Macromedia has been very supportive of our efforts. The engineers
especially deserve a round of applause for delivering the greatest Dreamweaver version
to date. As a Web developer, I find the program simply awesome to work with. As an
extension developer, I am excited about all of the advances in the foundation of the
program, and the integration with other Macromedia programs.
Last, but not least, I have to thank my wife, Janet, who is always a source of
inspiration. She provides support and encouragement during my long workdays and
often a fresh pair of eyes to edit my chapters. Without her help, none of this would
have been possible, and it certainly wouldn’t have been as enjoyable. She gets a thank
you and a big kiss.
—Tom

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:59:03 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter
FM:xxv

Introduction

elcome to Dreamweaver MX: The Complete Reference. Dreamweaver has grown

W a lot since the last version. In a nod to the ascendancy of the dynamic site,
UltraDev’s features are included and expanded in the core Dreamweaver
product. Macromedia now owns ColdFusion and JRun, making them a true contender
in the application server market. As a result, we have a ton of new features to come to
grips with and new capabilities to exploit in this version.
There is a learning curve that comes with this much power, though. The new interfaces
can be a bit overwhelming, and the server-side functionality can be confusing to a
novice. That is why this book is so important. It gives you all of the tools you need to
get started and become productive with Dreamweaver MX—in one package. We hope
you enjoy it.

xxv

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:59:04 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter

xxvi Dreamweaver MX: The Complete Reference

Who Should Read This Book


Eighty percent of Web designers use Dreamweaver. If you are in that crowd, you
should read this book. There is something in this book that will benefit almost
anyone—from beginner to professional—with an interest in Web Development with
Macromedia products.
If you are a developer, we can show you how to get the most out of Dreamweaver’s
tools. If you are not yet a developer, you will do well to become one, as the Web is not
standing still, and dynamic, data-driven sites are the future. This book can ease you
into that role within the comfort of a product you are used to.

How This Book Should Be Read


The short answer is, however you would like to read it. Chapters certainly do build
upon each other, and you might find it less confusing to at least thumb through
chapters with familiar content, just so you know where we are in the discussion. But
you can safely refer to individual chapters for their specific content on most topics.
We have tried to play a dual role between traditional reference and tutorial by
couching many of our explanations within projects and examples. Hopefully, this
approach serves a broad audience well.

What Is In This Book


We cover Dreamweaver MX, Fireworks MX, Flash MX, and a bunch of related technologies
like ASP, ASP.NET, ColdFusion, SQL, and database design in the pages of this book.
It is laid out so that you should be able to locate the parts you are interested in pretty
easily, but here is the overview.
Part I in an introduction to the basic concepts that make up Dreamweaver. It takes you
through the beginnings of a site’s development including much of the graphic layout.
Part II covers the design and construction of an entire Web site, including site
design, page design, Fireworks integration, Flash, CSS, and Javascript.
Part III covers Web scripting using the languages supported in Dreamweaver MX.
Part IV picks up with the construction of the Web application and adds data
functionality to the site.
Part V covers advanced data-driven topics, including data-driven Flash and
eCommerce.
Part VI is for the adventurous, and covers using and creating extensions for
Dreamweaver MX.

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:59:04 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2 / Front Matter

Introduction xxvii

Conventions Used In This Book


We have used several conventions to make this book easier to read.
You can identify code listings by their typeface. Here is an example:

<%
Dim Text
Test = “Hello World”
Response.Write Text
%>

If a line of code needs to be split across two lines, you will see the ¬ character.
When you are supposed to press a key or a combination of keys, they will be
identified like this:

CTRL-F2

Steps that you need to follow will be presented as a numbered list.

Downloads for Examples


This book demonstrates several examples using a fictitious site named Bettergig.com.
The database, template, stylesheet, and other code for the book are available for
download at www.dwteam.com/tcr or by going to www.osborne.com and following
the links. Also, a working site showing some of the functionality created in the book is
at www.bettergig.com.

Support and Errata


We do our best to provide help and errata information at our Web site at
www.dwteam.com. Please visit us there and let us know how you liked the
book and what else you would like to see. Thanks and enjoy.

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:59:04 AM
Color profile: Generic CMYK printer profile
Composite Default screen Complete Reference / Dreamweaver MX: TCR / West, Muck / 9514-2
Blind Folio xxviii

P:\010Comp\CompRef8\514-2\fm.vp
Wednesday, July 03, 2002 11:59:04 AM

You might also like