Professional Documents
Culture Documents
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
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: ®
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
<%
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
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