Cover image for Beginning dreamweaver MX
Title:
Beginning dreamweaver MX
Publication Information:
Indianapolis, Ind. : Wrox, 2003
ISBN:
9780764544040

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
30000010047107 TK5105.8885.D74 B76 2003 Open Access Book Book
Searching...

On Order

Summary

Summary

What is this book about?

With this book you''ll quickly be creating powerful, dynamic web sites with Dreamweaver MX - the latest version of Macromedia''s powerful, integrated web development and editing tool.

You''ll learn how to use the tools and features of Dreamweaver to construct three complete sites using HTML, JavaScript, Active Server Pages (ASP), and databases.

We start by creating a hobbyist site - The Cooking Place - that you can use to list your favorite recipes, ingredients, and dishes.

What does this book cover?

As you build this site you''ll learn how to use Dreamweaver MX to

Plan, create, and set up a web site Add web pages to the site and edit their content Use Stylesheets and templates to create a consistent style across the site Use tables, frames, and layers to lay out web pages Add dynamic effects - like drop down menus - to web pages using JavaScript and DHTML Interact with users via forms on web pages Create dynamic ASP web pages to respond to user actions and input

As you progress through the book, the sites you create become ever more ambitious. The second site you build is a fan site for soccer that provides information on upcoming events for fans around the world.

As you build the second site you''ll learn how to use Dreamweaver MX to:

Add logic to your ASP pages, so that you can display different information to different users, based on their location, or even the time of day Keep track of users as they move around the site, so that you can learn what parts of your site are the most popular Secure parts of the web site so that only authorized users are allowed to see sensitive information Personalize the web site for individual users - so that the site appears in the colors of the user''s favorite team or so that the user only sees events in their home country Store and extract information about users and upcoming events in a database - and use this information to dynamically create web pages

The final site in the book shows off many of the advanced features of Dreamweaver MX, as you walk through how to design a modular, extensible, and scalable site, and create a set of dynamic building blocks that can be quickly modified and reused in different sites.

As you build this site - which is used to display a set of images that users can view and purchase - you''ll learn how to use Dreamweaver MX to:

Create a set of building blocks whose look and content is determined dynamically by the settings in a database Create a content management page that you can use to mange the database that stores information about the images on the site, including their title, price, and how they should be laid out Put the building blocks you created earlier to a variety of uses, including a news blogger, a media display, and a product display Use Dreamweaver Extensions to make our building blocks easy to reuse and to add e-commerce functionality to the site

At the end of some of the chapters you''ll find a series of suggested exercises from the author that are designed to test your understanding of what''s been covered in the chapter as well as to encourage you to experiment with the features of Dreamweaver MX and to modify and extend the example applications.

Who is this book for?

This book is primarily for complete beginners to web site programming who have access to Dreamweaver MX and want to learn how to create dynamic web sites with it.

But the book doubles as a comprehensive reference to the features of Dreamweaver MX, so it will also be a useful resource to more experienced web developers who want to learn how to use the latest version of Dreamweaver.

As you work through the book, you''ll learn how to program using Active Server Pages (ASP), but this will prove useful even if you eventually want to use Dreamweaver MX to create web sites with JavaServer Pages (JSP), ASP.NET, PHP, or ColdFusion MX. Programming in any of these languages is very similar in Dreamweaver MX, and the core concepts you learn in building web sites with ASP are applicable and easily transferred to other languages. To help, the book includes four appendices that provide fast paced guides on how to get started using JSP, ASP.NET, PHP, and ColdFusion MX with Dreamweaver MX.

What do you need to use this book?

To run the examples in this book on your computer you''ll need:

Dreamweaver MX Microsoft Windows 98, 98SE, 2000 or XP Professional

If you don''t have a copy of Dreamweaver MX you can download a 30-day evaluation edition from Macromedia at http://www.macromedia.com/software/trial_download/ . The evaluation edition is fully-featured, and you''ll be able to use it to work through all the examples in the book.

If you have Microsoft Windows Me, Windows XP Home Edition, or a Macintosh you''ll still be able to create all the examples in the book but to see them in action you''ll need to use a remote server, as your operating system doesn''t, by default, include a web server that can process ASP pages. Fortunately, getting access to an ASP web host is easy -- there are dozens available. And to make things even easier, the book includes detailed information on how to set up a web application to use a remote server or web host.


Author Notes

Charles E Brown transferred his creative skills from music - he has a doctorate in music and studied with Igor Stravinsky (which led to an association with Pablo Picasso) - to computers in 1981. In addition to a busy music schedule, Charles does web design for major corporations, is a busy trainer conducting nearly 100 workshops per year, is a frequent speaker at conferences, and recently released the book Fireworks MX From Zero to Hero for Friends of Ed publishing. He does software seminars for The PC Learning Center in northern NJ and can be reached through www.pclearningcenter.com.

Imar Spaanjaars graduated in Leisure Management but accidentally ended up in IT. After working for a large corporation and doing some free-lance work, he is now working at the software development department of a small IT company in the Netherlands specializing in Internet and Intranet applications. As a software architect and lead developer, he's responsible for designing, building and implementing medium to large scaled Intranets for Dutch companies.
When he is not busy building web sites, or teaching other people how to do so, he likes to read as much as possible about new developments in software land. He also enjoys playing 3D shoot 'em up games if he's got the time for it.

Todd Marks is an avid developer, designer, instructor, and author of information display technologies. In 2000 Todd moved from teaching Mathematics and Computer Science in the public sector to VP of R&D at digitalorganism (www.digitalorganism.com). In 2002 Todd established an information technologies portal, MindGrub Technologies (www.mindgrub.com) and currently works for the Media Edge division of Exceptional Software (www.exceptionalsoftware.com). Todd has worked extensively with ActionScript, PHP, Lingo, and numerous other development languages, placing cutting-edge code in several projects. Todd's efforts have earned three Flash Film Festival nominations, Macromedia Site of the Day, two Addy Awards, and several educational partnerships. Todd is a Macromedia Certified Developer, Designer, and Subject Matter Expert, and has contributed to several books including Flash MX Video, Advanced PHP for Flash MX, Foundation Dreamweaver MX, and Flash MX Most Wanted Components.


Table of Contents

Introductionp. 1
What Does this Book Cover?p. 2
Who is this Book For?p. 4
What You Need for this Bookp. 5
Conventionsp. 5
Customer Supportp. 6
Erratap. 6
E-mail Supportp. 7
p2p.wrox.comp. 7
Why this System Offers the Best Supportp. 8
The Cooking Place
Chapter 1 Getting Started with Dreamweaver MXp. 11
A Brief Overview of the Internetp. 12
Static Web Pages and Dynamic Web Pagesp. 12
Hypertext Markup Language (HTML)p. 13
How the Page Gets to the Browserp. 14
Dynamic Web Contentp. 16
Dreamweaver MXp. 19
Installing Dreamweaver MXp. 19
Installing a Web Serverp. 24
Installing Microsoft's IIS Web Serverp. 25
Getting Started with Dreamweaver MXp. 29
The Dreamweaver Workspacep. 35
Panel Groups and Panelsp. 36
The Property Inspectorp. 37
The Insertp. 38
Setting up the Preview Browsersp. 38
Summaryp. 42
Chapter 2 Creating a Websitep. 43
Creating a Websitep. 44
Creating a Website in Dreamweaverp. 44
Physical Directories and Virtual Directoriesp. 44
The Site Definition Featurep. 45
Creating a Web Pagep. 51
Adding Metadata and Header Informationp. 56
Building our Page Designp. 58
The Table Structurep. 59
Preparing the Workspacep. 60
Building the Top Tablep. 62
Adding Content to the Top Tablep. 66
Building the Middle Tablep. 71
Building the Bottom Tablep. 78
Summaryp. 80
Chapter 3 Site Structure, Navigation, and Contentp. 83
Site Structure and Navigationp. 84
Expanding the Sitep. 84
Building a Navigation Systemp. 85
Implementing Navigation Buttonsp. 87
Pop-up Menusp. 93
Behaviorsp. 94
The Site Mapp. 98
Viewing Dependent Files in the Site Mapp. 100
Adding Content to Pagesp. 101
Inserting Text and Graphic Combinationsp. 107
Inserting Graphics into the Textp. 111
Adding Links to the Textp. 116
Summaryp. 119
Chapter 4 Stylesheets and Templatesp. 121
Cascading Style Sheetsp. 122
How CSS Worksp. 123
CSS Rulesp. 124
Creating and Implementing a CSS Stylesheetp. 124
Adding More Styles to a Stylesheetp. 129
Techniques for Inserting CSSp. 134
Cascadingp. 136
CSS Classesp. 139
Classes and Logical Markupp. 142
Pseudo-Classes and Pseudo-Elementsp. 146
Templatesp. 150
Creating a Templatep. 150
Creating New Pages from a Templatep. 152
Editable and Non-editable Regionsp. 153
Editing Template-based Documentsp. 153
Librariesp. 158
Summaryp. 161
Chapter 5 Using Layers and Frames for Layoutp. 163
Frames and Framesetsp. 164
How Framesets Workp. 164
A Frameset-based Solutionp. 165
Advantages and Disadvantages of Framesetsp. 166
Manipulating the Framesetp. 174
Finding Your Way Round the Framesetp. 174
Using Hyperlinks with Framesp. 177
Layersp. 185
Summaryp. 190
Chapter 6 Behaviors and Dynamic Effectsp. 191
An Overview of Browser Scriptingp. 192
Dynamic HTMLp. 193
Attaching Multiple Behaviors to an Elementp. 197
Using Layers to Provide Extra Informationp. 199
Swapping Imagesp. 204
Hidden Layersp. 208
Using Image Maps with Behaviorsp. 212
Summaryp. 216
Chapter 7 User Interaction with ASP and Formsp. 219
HTML Formsp. 220
Form Validationp. 234
Improving Forms with CSSp. 236
Introduction to Dynamic Contentp. 238
Dynamic Web Pagesp. 240
Active Server Pages (ASP)p. 242
Creating an ASP Pagep. 244
Using Forms with ASPp. 247
Conditional Outputp. 249
Bringing it all Togetherp. 251
Summaryp. 254
The Soccer Site
Chapter 8 Adding Logic to Your ASP Pagesp. 257
Our Sample Sitep. 258
Creating the Basics of Our Sitep. 258
Creating the Site Structurep. 262
Passing Values from Page to Pagep. 273
Creating a Form That Uses GETp. 274
The Request Objectp. 275
The Response Objectp. 276
Sending Values with GETp. 276
Retrieving Submitted Valuesp. 279
Sending and Receiving Values Using POSTp. 280
Post Backp. 281
Using Information on Multiple Pagesp. 286
The Session Objectp. 286
Enabling Session Statep. 287
Exploring Session Statep. 290
The Global.asa Filep. 293
Saving Values for Use Throughout the Sitep. 296
The Application Objectp. 296
Creating a Hit Counterp. 298
Summaryp. 301
Chapter 9 Keeping Track of Usersp. 303
Saving Information about a Pagep. 304
Cookies in Detailp. 305
Forewarned is Forearmedp. 310
Buffering Outputp. 310
Changing Code Logicp. 311
Improving the User's Browsing Experiencep. 311
Site Trackingp. 319
Grouping Code Togetherp. 319
Using Include Filesp. 321
Page Monitoringp. 322
Summaryp. 331
Chapter 10 Securing Websitesp. 333
Protecting Pagesp. 334
Creating a Login Formp. 334
Enhancing the Login Formp. 341
Protecting Our Pagesp. 353
Improving Usability: Using the Referrerp. 357
Preparing for Growthp. 361
The FileSystemObjectp. 362
Summaryp. 368
Chapter 11 Personalizing Websitesp. 369
Personalizing GlobalSoccerEvents.comp. 369
Using Color Schemesp. 369
Remembering Our Themep. 384
Your Own Color Pickerp. 387
Changing the Site Badgep. 395
Summaryp. 410
Chapter 12 Getting Information from a Databasep. 413
What Is a Database?p. 414
The Sample Databasep. 417
Different Kinds of Databasesp. 419
Securing a Databasep. 421
Changing Access Permissionsp. 422
Creating a Database-Driven Sitep. 427
Enhancing Our Login pagep. 431
Fine-Tuning Access to Your Sitep. 439
What is an Access Level?p. 439
Extending Access-Level Functionalityp. 444
Summaryp. 450
Chapter 13 Displaying Data in Web Pagesp. 453
Displaying Database-Driven Eventsp. 453
Displaying a List of Eventsp. 454
Extending the Repeat Regionp. 466
Fitering Database Values Using a Drop-Down Listp. 466
Viewing Details of an Eventp. 474
Linking the Event List to the Detail Pagep. 474
Showing Details of an Eventp. 476
Adding Error Handlingp. 481
Paging Datap. 485
Limiting the Events Listp. 486
Navigating the Datap. 487
Improving Our Navigation Systemp. 490
Summaryp. 493
Chapter 14 Storing Information in a Databasep. 495
Maintaining our Eventsp. 496
An Introduction to Using JOINSp. 497
Viewing Available Eventsp. 499
Creating New Eventsp. 508
Adding a Simple Insert Formp. 510
Spicing up the Formp. 520
Changing Existing Eventsp. 528
Deleting Eventsp. 536
GlobalSoccerEvents.comp. 542
Summaryp. 544
MediaEdge and Building Blocks
Chapter 15 Effective Site Design and Architecture: A Modular Systemp. 547
The MediaEdge Websitep. 548
Overview of the Building Block Technologyp. 549
Navigation and Contentp. 551
The Layoutp. 553
Creating the MediaEdge Sitep. 555
Index.aspp. 557
Setting up the Page Properties of Index.aspp. 558
Table Layoutp. 560
Adding a Search Field using Flash MXp. 563
Creating a New Server Behaviorp. 565
Implementing the New Server Behaviorp. 567
Imagesp. 571
Using Cascading StyleSheetsp. 571
Summaryp. 575
Chapter 16 Creating the Building Blockp. 577
The Building Blockp. 578
The Building Block Databasep. 579
Creating the Databasep. 580
Creating the Sections Tablep. 581
Creating the Content Tablep. 584
Creating the Section_Content Tablep. 586
The Database Connectionp. 587
Using the Database in buildingBlock.aspp. 589
Adding a Rollover Image to the Building Blockp. 592
Creating the Building Block Recordsetp. 594
Creating a Dynamic Image Server Behaviorp. 596
Making the Building Block's Images Dynamicp. 599
Inline Frames (iFrames)p. 603
Dynamic Dimensions for the Center Cellp. 606
Creating Contentp. 608
Summaryp. 613
Chapter 17 Creating a Content Management Systemp. 615
Updating the Databasep. 616
Adding Fields to our Content Tablep. 616
Creating a Subnavigation Tablep. 617
Overview of a Content Management Systemp. 619
Content Creationp. 620
Record Lockingp. 620
Single-Sourcingp. 621
Metadata Creationp. 623
Linkingp. 623
Ease of Usep. 624
Content Storage Issuesp. 624
Permissionsp. 625
Publishingp. 626
Presentationp. 627
Building our CMSp. 628
Creating a User Options Pagep. 628
Adding the Edit and Delete Buttonsp. 629
Developing a Content Creation Pagep. 633
Developing the Content Update Pagep. 638
Removing the ID Fieldp. 641
Developing the Content Deletion Pagep. 642
Extending the Formsp. 644
Summaryp. 646
Chapter 18 Completing the Building Block Structurep. 647
Block Navigationp. 648
blockNav.asp in Actionp. 650
Creating the New Filesp. 651
Session Variablesp. 656
Preventing Page Cachingp. 658
Creating blockMain.aspp. 659
Search Capabilitiesp. 663
Adding Content Datap. 668
Overview of Adding Contentp. 668
Adding Content to the Sections Tablep. 668
Adding Content to the Content Tablep. 674
File Associationsp. 676
Loading Different Types of Contentp. 680
Summaryp. 680
Chapter 19 Going Beyond--Dreamweaver MX Extensionsp. 681
Dreamweaver Extensionsp. 681
Installing the Extension Managerp. 682
Using the Extension Managerp. 684
Extension Formatp. 685
The Macromedia Exchange for Dreamweaverp. 686
Comments and Ratingsp. 687
Macromedia Approvedp. 688
Adding the PayPal Shopping Cart Extensionp. 688
Summaryp. 698
Appendices
A Using ASP.NET with Dreamweaver MXp. 701
B PHP and MySQLp. 715
C JavaServer Pagesp. 725
D Using ColdFusion MX with Dreamweaver MXp. 739
E Using a Remote Serverp. 753
Indexp. 761