Dreamweaver CS3 Beyond the Basics

Using the Live Preview


Dreamweaver CS3 Beyond the Basics

with James Williamson

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now

Video: Using the Live Preview

So we are back working on our bio page and we are going to replace the markup information on the page with our dynamic data, and we're not really doing anything new here yet, but we are going explore a new concept on this page known as Live Preview. When you are working with Filter data, the way we are on this page, a lot of times you are going to want to test that locally and this could be very hard to without passing a parameter into this file. So testing it on the server-side would be kind of difficult since we don't have a default parameter. So I am going to show you how to test it locally and use Live Preview.
Expand all | Collapse all
  1. 2m 3s
    1. Welcome
      1m 17s
    2. Using the exercise files
  2. 1h 23m
    1. Reviewing the Coding toolbar
      8m 41s
    2. Customizing the Coding toolbar
      9m 52s
    3. Taking advantage of Code Hinting
      7m 20s
    4. Using snippets and shortcuts
      11m 10s
    5. Using the Quick Tag Editor
      5m 18s
    6. Using Find and Replace
      9m 50s
    7. Regular expressions
      5m 39s
    8. Using Bridge with Dreamweaver CS3
      8m 28s
    9. Round-trip editing with Photoshop CS3
      3m 39s
    10. Leveraging image variables in Photoshop CS3
      7m 32s
    11. Integrating external variables into your workflow
      6m 15s
  3. 37m 26s
    1. Understanding the CSS Styles panel
      7m 59s
    2. Understanding the Cascade
      5m 50s
    3. Understanding Inheritance
      5m 8s
    4. Understanding Specificity
      7m 5s
    5. Managing CSS styles
      5m 4s
    6. Using Design-Time style sheets
      6m 20s
  4. 2h 19m
    1. Using the new CSS template pages
      5m 59s
    2. Understanding DIV tag structure and layout
      12m 0s
    3. Understanding the CSS box model
      10m 0s
    4. Using absolute and relative positioning
      8m 34s
    5. Understanding floating elements
      7m 9s
    6. Clearing floats
      7m 19s
    7. Using floats to control page layout
      3m 44s
    8. Building structure and assigning IDs
      10m 19s
    9. Applying basic styling to structured content
      11m 13s
    10. Positioning container elements
      11m 4s
    11. Enhancing layouts with background graphics
      11m 48s
    12. Creating faux columns with background graphics
      8m 55s
    13. Creating rounded corners with background graphics
      9m 17s
    14. Building navigation with CSS
      16m 57s
    15. Using Dreamweaver's Browser Check feature
      5m 31s
  5. 53m 20s
    1. Creating properly structured forms
      6m 30s
    2. Creating accessible forms
      6m 41s
    3. Using CSS to lay out form structure
      7m 40s
    4. Creating vertical columns for form elements
      7m 47s
    5. Adding user feedback
      5m 52s
    6. Applying advanced styling to forms
      8m 11s
    7. Client-side form validation
      4m 17s
    8. Validating forms with the Spry Validation tools
      6m 22s
  6. 1h 20m
    1. Understanding the Spry framework
      3m 42s
    2. Defining a data source for use in Spry
      3m 56s
    3. Creating a Spry table
      8m 8s
    4. Using the Spry widgets
      8m 11s
    5. Connecting various data sets
      4m 50s
    6. Understanding Spry widget structures
      7m 1s
    7. Applying custom styles to Spry widgets
      6m 23s
    8. Applying additional custom styles to Spry widgets
      8m 46s
    9. Controlling Spry widget behaviors with JavaScript
      6m 0s
    10. Controlling Spry widget animations with JavaScript
      9m 31s
    11. Creating effects with Spry behaviors
      4m 42s
    12. Hand-coding Spry
      9m 11s
  7. 1h 11m
    1. Creating a base template
      8m 6s
    2. Creating editable attributes
      6m 26s
    3. Creating a new page from a template
      7m 42s
    4. Applying a template to an existing page
      4m 36s
    5. Creating nested templates
      5m 24s
    6. Using repeating regions
      6m 33s
    7. Creating editable and non-editable optional regions
      6m 0s
    8. Using template parameters
      7m 26s
    9. Using template expressions
      9m 59s
    10. Using conditional template expressions
      8m 54s
  8. 54m 38s
    1. Examining XML structure
      2m 43s
    2. Creating an XML document
      9m 9s
    3. Using the CDATA structure
      5m 7s
    4. Creating an XSLT file
      4m 33s
    5. Binding data from an XML to an XSLT document
      5m 6s
    6. Inserting repeating regions into an XSL document
      5m 16s
    7. Creating a client-side XSL transformation
      2m 51s
    8. Styling a remote RSS feed
      7m 29s
    9. Creating a server-side XSL transformation
      5m 31s
    10. Writing XSL expressions
      6m 53s
  9. 1h 2m
    1. Overview of building dynamic websites
      1m 35s
    2. Installing PHP, MySQL, and Apache on Mac
      3m 22s
    3. Installing PHP, MySQL, and Apache on Windows
      3m 54s
    4. Creating a MySQL database
      3m 16s
    5. Defining a testing server and database bindings
      6m 13s
    6. Creating a database recordset
      4m 35s
    7. Adding dynamic content to the page
      5m 14s
    8. Creating repeating regions of dynamic content
      7m 6s
    9. Filtering database records
      7m 38s
    10. Using the Live Preview
      10m 22s
    11. Passing URL parameters
      4m 23s
    12. Dynamically generating links
      5m 18s
  10. 57m 6s
    1. Understanding behaviors
      5m 16s
    2. Installing additional behaviors
      3m 39s
    3. Planning to create a custom behavior
      3m 41s
    4. Examining existing behaviors
      5m 31s
    5. Building a behavior function
      7m 23s
    6. Creating an Action file
      6m 48s
    7. Enabling behavior functions
      9m 1s
    8. Initializing the user interface for a behavior
      3m 8s
    9. Loading behaviors in Dreamweaver
      6m 47s
    10. Testing and debugging behaviors
      5m 52s
  11. 27m 11s
    1. Running reports
      7m 41s
    2. Checking and validating links
      3m 40s
    3. Using cloaking
      5m 42s
    4. Using Check In/Check Out
      4m 3s
    5. Using Design Notes
      6m 5s
  12. 20s
    1. Goodbye

please wait ...
Watch the Online Video Course Dreamweaver CS3 Beyond the Basics
11h 10m Intermediate Sep 21, 2007

Viewers: in countries Watching now:

Covering diverse topics such as improving workflow and managing CSS styles, Dreamweaver CS3 Beyond the Basics is a hands-on course that teaches users how to move beyond standard, static websites. Instructor James Williamson explores how to increase productivity, interactivity, and accessibility with Dreamweaver. He also discusses how to extend the application's capabilities with XML and XSL. Exercise files accompany the tutorials.

Topics include:
  • Reviewing and customizing the coding toolbar
  • Understanding the CSS Styles panel
  • Using absolute and relative positioning
  • Creating accessible forms
  • Building AJAX pages with the Spry framework
  • Extending templates
  • Working with XML and XSL
  • Building dynamic content
  • Creating custom behaviors in Dreamweaver
  • Running reports
James Williamson

Using the Live Preview

So we are back working on our bio page and we are going to replace the markup information on the page with our dynamic data, and we're not really doing anything new here yet, but we are going explore a new concept on this page known as Live Preview. When you are working with Filter data, the way we are on this page, a lot of times you are going to want to test that locally and this could be very hard to without passing a parameter into this file. So testing it on the server-side would be kind of difficult since we don't have a default parameter. So I am going to show you how to test it locally and use Live Preview.

So before we do that, let's go up and start working on replacing our data and we are going to go all the way up to the very top because we need to figure out what's going to change on this page for each artist. And the first thing and the thing that a lot of people forget about is the title of the page. So the title of the page is Aimee Hutchins Bio and that is not going to work for us. So I am going to switch to Code view and find the title tag, which is on line 46, and I am going to highlight Aimee's name. And I don't really have a single artist's name. I've got a firstName and a lastName. Now that allows me to be very flexible, but I also have to be careful about that.

So I really just need to go ahead and highlight Aimee's first name and then select firstName and drag it over Aimee and then I need to highlight the last name and drag that over Hutchins. Now again, I want to make sure that I have got space between the two of them so it gets really kind of confusing in Code view. I just want to make sure I've got enough space between the first PHP and the second PHP. I don't want the first and last name to sort of jam together. And that takes care of our title. So I am going to switch over to Design view and in Design view the banner graphic at the top of the page is unique to each artist as well.

So we could make that a dynamic image but our database really doesn't have anything in it for a banner graphic. We have a small image and a large image, but we don't have the path or a banner graphic, so you're not always going to have everything you need inside of your database. But again the naming convention that we used for almost all of the things that are going to change on a page-- So if you select it you can look at the source of the file and you see that it says aimee_banner. Well, the shortName in our recordset is actually the first name of each artist. So once again I am going to switch over to Code view after selecting the banner graphic, and in the image source I am going to highlight the word aimee and once again I am going to go to the shortName and drag that over in its place.

I will need to do the same thing for the alt text and in the alt text I am going to use the shortName as well, right there. So now we have our shortName concatenated into the source attribute and we have the shortName being used for the alt tag. So we'll flip back over into the Design view and you will notice now that our banner graphic is gone and it's replaced with a dynamic link. So Dreamweaver is very well aware of the fact that that image is relying on dynamic data to display. We are going to place Aimee's name in the headline next. I will highlight Aimee and I am going to choose firstName and click Insert and it will insert it on the page.

I will highlight Hutchins, choose lastName, insert that on the page, and you can see I am trying to go in a very deliberate order down the page. I am going to select the photo of Aimee. We need to bind the source of that to the small image. So once the image is selected I am going to go over to my recordset. So this is really good practice for us to do this again. I am going to click on small image and notice that the default is to bind to the image source, so I am going to verify that,it says image source in my pulldown menu and choose Bind. And I am also going to -- with that still selected -- I am going to the shortName and I am going to bind that as I grab the pulldown menu to the image alt attribute. So make sure again in the Bind To menu it says img.alt. Make sure shortName is selected in your recordset and click Bind. We are almost done.

I am going to scroll down and highlight all of the dummy text where our bio is going to go. So we will highlight that, and I will go over to my Bindings panel and click on the bio item from our recordset and then click Insert. That will replace that. Now I mentioned before that we are going to place a larger image on the file, just a representational image of the artist's artwork. So after the bio I am going to place my cursor right at the end of that recordset detail, and I will hit Enter and that will take me down to the next line. And on the next line I am going to choose the large image. Now if I click Insert on the page or drag it to the page then it isn't going to work for me because it will end up displaying the actual path to the image on the page as text and that is not what we want.

So we've got to figure out how to get this image on the image. Now you could put a placeholder graphic on the page and change the source binding, which we have been doing up until now, but there is actually a much easier way. I am going to go to the Common Objects and I am going to go to the Images pulldown menu and I am going to select Image. So if I click on my Images directory and I start browsing around, I don't see anything in here that says Dynamic image for artist. So that is not what I need. So in my Select Image Source dialog box, at the very bottom on the Mac I see a button down here that says Data Sources. Now on the PC that button is actually going to be the top of the dialog box. So I am going to click on Data Sources and I am going to choose lgimg and that contains the path for the image, and if I need to do any special formatting and usually this is for like form data or things like that, I could do that, but I don't need that so I am going to click OK.

And again it's asking me for an alternative text. I don't really have any alternative text right now and it doesn't matter because I can't bind it here anyways so I am going to click OK and there is my image. Now the next thing I am going to do I do need to alt tag this. So with that image selected I will go over to my recordset, click on shortName and choose once again img.alt. And we'll choose Bind. Now there is one thing we need to do here in terms of cascading styles. In this particular div tag all the images are being told to float to the left and it would be disastrous to our page design if this were floating to the left. So go ahead and select the image and in the Properties inspector from the Class pulldown menu, go ahead and choose nofloat. That's the class we have already created, and that's going to make sure that that image appears all by itself.

So there's nothing wrong with combining dynamic data and cascading style sheets. It actually makes for a very efficient way of working. So we've only got one element left on the page to deal with and that is the link to Aimee's Gallery. Now when you're typing this by hand it makes sense to say Aimee's Gallery and Ben's Gallery and that sort of thing, but we have a little bit of a problem and that's that we're going to be displaying these names dynamically. So you really don't know whose name is going to show up. So if we change Aimee and Ben and William and Josh, it's going to be just fine, but what happens when we say display Chris's Gallery. Well, Chris doesn't need an apostrophe S. So that would be grammatically incorrect.

Now we could go so far as to write regular expression in the PHP. That would say okay, if the name end in S take off the last S and just leave the apostrophe, but that's a little bit of work. So what we are going to do is we're just going to modify our gallery altogether. What we are going to do is I am going to come in and highlight the text and we're just going to replace Aimee with Artist Gallery and after the Gallery we're just going to type in a colon. That will be good. And we'll just type in placeholders for First Name and Last Name. So we'll have a nice long link here.

So now we need to replace our placeholders in here with dynamic data. So we could highlight text First Name and go up to firstName and insert that. And we could highlight Last Name, highlight Last Name and insert that. Now the problem is the link's going to look just fine but where is it actually going to go? Well, I'll need to switch back to Code view and in Code view on line 72 I can see there is my a href and it's still going to aimee.htm.

So I need to highlight that and we are going to use our shortName to drag that over the word aimee to replace that. So once again, make sure that your PHP is exactly where it needs to be. That you'll have any extra spaces or anything that might cause the link not to work. So we will back to Design view and we will save the file. Now, I love to be able to preview this in my browser, but if I tried I would get an error and the error is-- the error would be caused by the fact that this page is expecting a parameter to be passed into it. So if you don't pass a parameter into it, it doesn't know which records to display. So I am going to scroll back up the top so we can see this when we do preview it. And what's nice about Dreamweaver is Dreamweaver gives us the ability to preview this data live, and if you look at your Document toolbar where your Code, your Split and your Design view buttons are, you can see there is a new little icon there and if I hover over it says Live Data view.

Now when you're developing, especially if you are dealing with really large scripts sometimes previewing that in your browser is going to take a while or you might have to upload a lot of files. So sometimes you just want to check and make sure that that data is showing up on the page the way you expect. So I am going to go ahead and click that. So we're actually not seeing any data on the page at all. And the reason for that is because again we have not passed a parameter into it, but after we click on the Live Data view, underneath that we see an address bar and just to the right of the address bar is an area for us to pass in a parameter. So I am going to go ahead and type in artistID= and we'll just go ahead and choose 3.

If you hit Enter and nothing happens, go over to the left and click on the Refresh Live Data. You could see the shortcut key for that is Ctrl+R or Command+R, so we'll click on that and there is our Live Data. So we can see the banner graphic for Chris coming in. We can see Chris' name, his photo, we've got the bio page, there is a large image appearing where we expect it to and here's our link to the Artist's Gallery, Chris Mattia. So that worked perfectly. Fantastic! So I am going to go ahead and turn Live Data view off again, and we go back, scroll up, go back seeing our placeholder information.

So our bio page is finished. All that's necessary now is that we complete the link in our artists page and pass over the URL parameter that identifies the artist and we will take care of that in our next example.

Find answers to the most frequently asked questions about Dreamweaver CS3 Beyond the Basics .

Expand all | Collapse all
please wait ...
Q: In the Chapter 3 movie “Creating rounded corners with background graphics”, the instructor uses a .last class selector. What are the CSS properties of this selector?
A: The .last selector is as follows:
#current p.last{
background: url(../_images/current_btm_bg.gif) no-repeat bottom
padding-bottom: 2em;
margin: 0;
The background is the bottom rounded corner graphic, the bottom padding keeps the type away from the bottom of the box and thus the rounded corners, and the margin ensures that the box elements fit seamlessly with each other.
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.

Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

* Estimated file size

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.

Mark all as unwatched Cancel


You have completed Dreamweaver CS3 Beyond the Basics.

Return to your organization's learning portal to continue training, or close this page.

Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.