About the Book
As an experienced Macromedia
Dreamweaver user, you know that it is a powerful web development tool,
but you're lacking the knowledge to fully exploit the potential of the
Dreamweaver environment. As a skilled website developer and programmer,
you have that knowledge, but you're lacking the experience with the Dreamweaver
program. Either way, Macromedia Dreamweaver MX 2004 Unleashed is what you
need. The most complete guide to cover Dreamweaver MX 2004's powerful features,
it will show you strategies for designing, managing and developing sophisticated
websites within the Dreamweaver environment. It will also guide you through
the realm of dynamic sites, which will ultimately enable a richer experience
for the end user. These techniques are not covered in other intermediate-level
Dreamweaver books. Let Unleashed help you unleash the potential of your
Dreamweaver MX 2004 websites.
Related
Books
Teach Yourself Books (Teach
Yourself Books)
Table ofContents
Introduction.
I. GETTING UP TO SPEED WITH DREAMWEAVER
MX.
1. What’s New In Dreamweaver MX
2004.
A New Dreamweaver User Interface.
New Quickstart Menu.
Streamlined Workspace.
Reorganized Panels.
Siteless Page Editing.
Enhanced CSS Support.
Integrated CSS.
Enhanced CSS Panel.
CSS Property Inspector.
CSS-based Page Properties.
Increased Integration with Other Suite
Applications.
Integrated Fireworks Image Editing.
Increased Integration with Flash.
Enhanced Support for Dynamic Platforms.
Copy and Paste from Microsoft Applications.
Additional Coding Tools.
Dynamic Cross-Browser Compatibility
Check.
Enhanced Find and Replace.
Right-Click Coding Tools.
Enhanced Security Using FTP.
Troubleshooting.
Why Update My Source Files?
Where Are the UltraDev CF Server Objects?
Frequently Changing Content.
Peer to Peer: Taking the Anxiety Out
of CSS.
2. Welcome to the Dreamweaver MX
2004 Interface.
Panels and Inspectors.
Properties Inspector.
The Insert Panel.
Layout Section.
Text Objects.
Character Menu.
Form Section.
HTML Section.
Application Section.
Middleware Section.
Flash Elements Tab.
Favorites.
Site Files Panel.
Interacting with Panels.
Assets Panel.
Design Panel Set.
Code Panel Set.
Application Panel.
Document Window.
Toolbar.
Document Size and Web Page Dimension.
Status Bar.
Summary.
3. Dreamweaver MX 2004 Site Management.
Setting Up a Web Site in Dreamweaver
MX 2004.
The Local Info Category.
The Site Name and Local Root Folder.
Remote Info Category.
Testing Server Category.
Cloaking Category.
Design Notes Category.
Site Map Layout.
File View Columns.
Contribute.
Managing a Web Site in Dreamweaver
MX 2004.
Working with the File Panel.
Synchronizing Local and Remote Files.
Working with the Site Map.
Modifying Page Titles.
Maintaining Files.
Changing Links.
Change Links by Using the Change Link
Command.
Change Link Sitewide.
Deleting Links.
Checking Links.
Using Site Reports.
Checking Browser Compatibility.
Summary.
4. Dreamweaver MX 2004 Essentials.
Working with Dreamweaver MX.
Working with an HTML Document.
Appearance.
Links.
Headings.
Encoding.
Tracing Image.
Creating a Color Scheme.
Working in the Coding Environment.
Roundtrip HTML.
Code View.
Quick Tag Editor.
HTML Reference.
Tag Inspector.
Web Typography <font> Tag.
Text Formats.
Formatting Text Using Paragraph.
Preformatted.
Choosing Typefaces.
Font Size.
Bold, Italic, and Alignment.
Creating Lists.
Unordered and Ordered Lists.
Definition Lists.
Nested Lists.
Inserting the Time and Date.
Inserting a Horizontal Rule.
Working with Hyperlinks.
Creating a Link Using the Browse to
File Method.
Linking to an External Web Site.
Email Links.
Named Anchors.
Images on the Web.
GIFs.
JPEGs.
PNGs.
Inserting Images into a Dreamweaver
Document.
Imagemaps.
Rollover Images.
Navigation Bars.
Background Images.
Image Placeholders.
Summary.
II. STATIC WEB PAGE CREATION.
5. Creating Tables.
Using Tables in Dreamweaver MX 2004.
Table Terminology.
How the HTML Works.
Inserting and Working with Tables.
Pixel-based or Percentage-based Width?
Modifying Tables.
Selecting Table Elements.
Modifying Table Properties.
Table Alignment.
Working with Table Borders.
Background Color and Images.
Adding and Deleting Rows and Columns.
Inserting Rows and Columns.
Deleting Rows and Columns.
Resizing Tables.
Clearing Cell Heights and Widths.
Converting Pixels to Percentages.
Spanning Table Cells.
Splitting and Merging Cells.
Nesting Tables.
Additional Table Properties.
Working with Table Formats.
Sorting Tables.
Importing Tabular Data.
Layout Mode.
Drawing Tables.
Drawing Cells.
Modifying Layouts.
Expanded Mode.
Tracing Images.
Summary.
6. HTML Forms.
Inserting a Form in Dreamweaver MX
2004.
Inserting Form Objects.
Working with Text Fields.
Working with Form Actions.
Testing a Form Locally.
Additional Form Objects.
Create Navigation with a Jump Menu.
Real-World Forms, Building Forms That
Work.
Sending Form Data Through Email.
Sending a Form with a CGI Script.
Summary.
7. Framesets.
Understanding Frames.
The Advantages .
The Disadvantages.
Be Prepared.
Creating Framesets and Frames.
Creating a New Frameset Document.
Create a New Frameset with Menus and
the Mouse.
Create a Frameset with the Insert
Panel.
Saving Framesets.
Modifying and Resizing Frames.
Titling the Frameset.
Resizing Frames.
Deleting a Frame.
Adjusting Frame Attributes.
Name.
Scroll.
Borders and Border Color.
Frame Resize.
Margin Width and Height.
Targeting Frames.
Changing Page Properties.
Saving, Closing, and Opening a Frame.
Matt’s Unapproved Technique for Creating
a New Document.
Closing and Opening a Frameset.
No Frames Content.
iFrames.
Summary.
8. Dreamweaver Templates.
Templates or Framesets?
More About Templates.
Creating a Template.
Creating a Template from an Existing
HTML Page.
Creating a Template from a New Document.
Creating Editable Regions.
Applying a Template or Creating a
New Document Based on a Template.
Creating an Editable Tag Attribute.
Repeating Table.
Repeating Regions.
Optional Regions.
Nested Templates.
Updating Template-based Pages.
Detach from Template Command.
Summary.
9. Assets and the Library.
Working with the Assets Panel.
How the Assets Panel Works.
Refreshing the Assets Panel.
Inserting Assets.
Customizing the Assets Panel.
Managing Your Assets.
Editing Assets.
Adding Assets to Your Favorites.
Working with Library Items.
Creating a Library Item.
Editing Library Items and Updating
the Site.
Detaching Library Items.
Deleting Library Items.
Re-create.
Moving Libraries.
Summary.
10. Cascading Style Sheets.
A Brief Introduction to Styles.
CSS Styles Versus HTML .
The Syntax of CSS.
Support for CSS Styles.
Designing with CSS.
Create a Style Sheet.
Define Your Styles.
Apply Your Styles.
Test Your Designs.
Style Properties .
Text Options.
Background Options.
Block Options.
Box Options.
Border Options.
List Options.
Positioning Options.
Extensions and Filters.
Shorthand Properties in CSS.
CSS Validation.
Working with CSS Styles .
Editing Styles.
Redefining HTML Tags.
Using CSS Selectors.
Attaching a Style Sheet.
Embedded Style Sheets.
Converting CSS to HTML.
Editing CSS in Code View.
Starting with Dreamweaver MX 2004
Style Sheets.
Writing Advanced CSS .
Design Time Style Sheets.
Summary.
III. ADDING INTERACTIVITY
11. Behaviors.
Attaching Behaviors.
Open Browser Window.
Calling JavaScript.
Change Property.
Check Browser.
Check Plug-In.
Drag Layer.
Go to URL.
Jump Menu.
Play Sound.
Pop-Up Message.
Preload Images.
Set Nav Bar Image.
Set Text.
Show-Hide Layers.
Swap Image/Swap Image Restore.
Validate Form.
JavaScript Drop-Down/Pop-Up Menus.
Summary.
12. Layers in Dreamweaver.
Introduction to Layers.
Layers or Tables?
Creating Layers.
Overlapping Layers.
Drawing Layers.
Inserting Layers.
Deleting a Layer.
Embedding a Layer with Style Sheets.
Absolute and Relative Positioning
.
Inserting Content into Layers.
Sizing, Positioning, and Modifying
Layers with the Properties Inspector.
Sizing Multiple Layers.
Positioning Layers .
Nesting Layers.
Changing Attributes of a Layer.
Modifying Layer Properties with the
Layers Panel.
Nesting with the Layers Panel.
Designing a Page with Layers.
Aids to Help Lay Out Layers.
Prevent Overlaps.
Converting Layers to Tables.
Summary.
13. Adding Video and Audio.
Media Players.
Streaming Video.
Progressive Download.
QuickTime.
Windows Media.
RealMedia.
Adding Video to Your Pages.
Embedding Video Clips.
Codecs.
Linking Video.
Embedding Video with the <Embed>
Tag.
Playing Video Clips on the Web.
Adding Audio to a Web Page.
Linking to Audio Files.
Embedding Audio Files.
Embed Attributes.
Summary.
14. Inserting Flash and Shockwave.
Creating Flash Buttons in Dreamweaver
MX 2004.
Creating Flash Text in Dreamweaver
MX 2004.
Inserting Flash Files.
Additional Flash Parameters.
Roundtrip Flash Editing.
Inserting Shockwave into a Dreamweaver
Document.
Controlling Shockwave and Flash Movies
with Behaviors.
Working with Flash Elements.
Summary.
15. Integration with Complementing
Programs.
Specifying External Editors.
Editing Images in Dreamweaver with
Fireworks.
Optimizing an Image in Dreamweaver
with Fireworks.
The Optimize Window in Fireworks.
Insert Fireworks’ HTML Command.
Creating a Button in Fireworks.
Inserting Fireworks HTML.
Creating a Web Photo Album.
Using Photoshop with Dreamweaver MX
2004.
Using Photoshop as the External Editor.
Importing Content Created in ImageReady.
Summary.
IV. INTRODUCTION TO WEB APPLICATIONS.
16. Introduction to Web Applications.
Terminology.
Server-Side Scripting.
Databases.
Structured Query Language.
Data Source Name.
Middleware Options.
PHP.
ColdFusion MX.
ASP.
ASP.NET.
Database Options.
SQL Server.
Oracle.
MySQL.
Access.
Summary.
17. Web Application Preparation.
Introduction.
Setting Up the Web Server.
Internet Information Services/Personal
Web Server.
Apache.
Setting Up the Application Server.
PHP.
Installing ColdFusion.
Installing ASP/ASP.NET.
Choosing a Database.
Access.
MySQL.
SQL Server.
Summary.
18. Dreamweaver MX 2004 for Application
Development.
Create a Connection with a Data Source
Name (DSN).
Connections for ASP.
Connections for ColdFusion.
Custom Connection Strings.
DSN-less Connection with ASP.
Connections for ASP.NET with OLE DB.
Connections for PHP.
Summary.
V. MIDDLEWARE.
19. ASP and ASP.NET.
Introduction to ASP.
The ASP Object Model.
Other ASP Objects and Components.
Configuring the Web Store to Run ASP.
Using ASP with Dreamweaver MX 2004.
Introduction to ASP.NET.
Introduction to .NET.
The .NET Framework.
The Common Language Runtime.
The .NET Framework Class Library.
Understanding Namespaces.
ASP.NET Page Structure.
Directives.
ASP.NET Controls.
Code Render Blocks.
Configuring the Web Store to Run ASP.NET.
Using ASP.NET with Dreamweaver MX
2004.
Beyond Dreamweaver MX 2004.
Sending Email with ASP.
Sending Email with ASP.NET.
Summary.
20. PHP and MySQL.
Introducing PHP.
Working with MySQL.
Connecting to the MySQL Server.
Creating a Database.
Creating a New Table.
Visualizing a Table.
Dropping a Table.
Working with Dreamweaver MX for PHP/MySQL
Development.
Building a PHP/MySQL Site.
Creating a Database Connection.
Inserting a Record into a Table.
Building a Recordset.
Updating an Existing Record.
Deleting a Record.
Summary.
21. ColdFusion.
Introduction to ColdFusion.
Creating a New ColdFusion Site.
ColdFusion Markup Language.
Examples of CFML Tags and Functions
in Use.
Using Dreamweaver to Write ColdFusion.
Code View.
Application Panel.
Insert Panel.
Tag Chooser.
Hand-Coding ColdFusion.
Code Snippets.
Creating Your Own Snippet.
Managing Snippets.
Code Debugging in Dreamweaver.
Enabling Debugging in ColdFusion MX
Administrator.
Creating an Error.
Using Internal Server Debugging.
Summary.
VI. DATABASE-DRIVEN PAGES.
22. Database Primer.
What Is a Database?
The Database Management System (DBMS).
The Database.
Tables.
Columns.
Rows.
Beyond the Basics.
Stored Procedures.
Triggers.
Views.
Security.
Relationship Management.
Keys.
Normalization.
The First Normal Form.
The Second Normal Form.
The Third Normal Form.
Domain/Key Normal Form.
Designing the Web Store Database.
The Customers Table.
The Credit Cards Table.
The Inventory Table.
The Orders Table.
The Products Table.
The Transactions Table.
Creating Relationships Between the
Tables.
Summary.
23. SQL Primer.
The Structured Query Language.
Basic SQL.
The SELECT Statement.
Clauses.
The INSERT Statement.
The UPDATE Statement.
The DELETE Statement.
Expressions.
Operators.
Functions.
Date and Time Functions.
The Count Function.
The Sum Function.
The Avg Function.
The Min and Max Functions.
Arithmetic Functions.
String Functions.
Joins.
Inner Joins.
Outer Joins.
Subqueries.
The IN Operator.
The Embedded SELECT Statement.
Using Access to Generate Queries.
Generating Queries in Design View.
Generating Queries with Relationships.
Summary.
24. Working with Dynamic Data.
Building the Web Store Application
Using ASP.
Creating the View Catalog Page.
Creating a Recordset.
Creating an Advanced Recordset.
Creating a Recordset from a View.
Working with Dynamic Elements.
Recordset Paging.
Showing Specific Regions.
Using Repeat Region.
Building the Web Store Application
Using ASP.NET.
Creating the View Catalog Page.
Creating a New DataSet.
Working with Dynamic Elements.
DataSet Paging.
Using Repeat Region.
Display Record Count.
Showing Specific Regions.
Working with DataGrids.
Using Hyperlinked Columns to Create
Master/Detail Pages.
Working with DataLists.
Live Data View.
Live Data Settings.
Summary.
25. Modifying the Database.
Creating the Web Store New User Registration
Page Using ASP.
Creating the New User Registration
Form.
Inserting Records.
Creating the My Account Page Using
ASP.
Creating the My Account Form.
Building the Web Store New User Registration
Page Using ASP.NET.
Creating the New User Registration
Form.
Validating the Form with Validation
Controls.
Inserting a New User.
Creating the My Account Page Using
ASP.NET.
Creating the My Account Form.
Using ASP Application Objects to Create
an Admin Page.
Dynamic Tables.
The Recordset Navigation Bar.
Deleting Records.
Master-Detail Page Set.
Summary.
26. SQL Search Page.
SQL Search.
A Basic SQL-based Search.
Creating the Web Store Search Page.
Creating the Web Store Search Results
Page.
Globalizing the Search Functionality.
Creating the Advanced Search Page.
Creating the Web Store Search Functionality
Using ASP.NET.
Summary.
27. Adding Shopping Cart Functionality.
Creating the Web Store Shopping Cart.
What Is a Shopping Cart?
The UltraDev Shopping Cart.
Integrating the Shopping Cart with
the Web Store.
Creating Checkout Functionality.
Writing to the Orders Table.
Building an ASP.NET Shopping Cart.
Building the View Cart Page.
Keeping
a Grand Total.
Adding Items to the Cart.
Removing Items from the Cart.
Summary.
28. Security and User Authentication.
Securing the Web Store.
Creating a Login Page.
Restricting Access Based on Username,
Password, and Access Level.
Custom Error Messages.
Check to See if the User Is Logged
In.
Logging Out Users.
Revamping the New User Registration
Page.
Securing ASP.NET Applications.
Working with Forms Authentication.
Summary.
29. XML Web Services.
Dreamweaver MX 2004 and Web Services
Integration
A Simple Calculator Web Service.
An Introduction to WSDL and the Google
Search Web Service.
Building the Google Search Web Application.
Web Service and Database Interaction.
Summary.
VII. APPENDIXES.
Appendix A: Accessibility.
Accessibility Standards.
Standards Resources.
Conform with Standards.
Apply Standards to New Designs.
Apply Standards to Existing Sites.
Accessibility Reference.
Image Tests.
Imagemap Tests.
Color and Style Tests.
Form and Scripting Tests.
Table and Frame Tests.
Multimedia and Applet Tests.
Other Accessibility Tests.
Summary.
Appendix B: Extending Dreamweaver
MX 2004.
Working with Objects.
Understanding Objects.
The Simple <sup> Tag Object.
The Advanced <sup> Tag Object.
Working with Behaviors.
Understanding Behaviors.
The Simple Resizer Behavior.
The Advanced Resizer Behavior.
Advanced Behavior Functions.
Working with .js Files.
Customizing Dreamweaver MX 2004’s
Menus Using menus.xml.
Menus.xml Tag Syntax.
Rearranging Menus and Menu Items.
Changing the Name of a Menu or Menu
Item.
Changing Keyboard Shortcuts Using
the Keyboard Shortcuts Editor.
Sharing Extensions Through the Macromedia
Exchange.
Documentation.
Distribution.
Submission.
The Server Behavior Builder.
Server Behaviors.
Summary.
Appendix C: General Resources.
Reference Links.
ASP.
ASP.NET.
ColdFusion.
Database.
Dreamweaver.
HTML.
JavaScript.
JSP.
PHP.
SQL.
Web Services.
XHTML.
XML.
General Resource Sites.
Author Sites.
Database Conversion (Upsizing).
Troubleshooting Dreamweaver MX 2004
Application
Development Errors.
Index |