Skip to Content
Dreamweaver CS6: The Missing Manual
book

Dreamweaver CS6: The Missing Manual

by David Sawyer McFarland
July 2012
Intermediate to advanced
1034 pages
38h 32m
English
O'Reilly Media, Inc.
Content preview from Dreamweaver CS6: The Missing Manual

Live Code

Live Code works in conjunction with the Live view option discussed on Phase 5: Preview Your Work. (The short version: Live view lets you see what an in-progress web page actually looks like in a browser…right within Dreamweaver.)

The Live Code button (circled in Figure 7-16) makes Dreamweaver jump to Split view, with the page’s Live view in one half of the document window and the underlying HTML in the other half. In Live Code view, HTML appears with a yellow background, and, as with Live view in general, you can’t edit it. So what is Live Code for? Or, more accurately, who is it for?

Hear ye! Hear ye! Calling all programmers. Live Code provides valuable insight into web pages that are either manipulated with JavaScript programming or constructed with server-side code, like the pages discussed in Part 6 of this book.

JavaScript programming usually involves manipulating the HTML of a page to make elements appear or disappear. For example, programmers often make forms more usable by adjusting the options the site displays based on selections the visitor makes. If someone checks the “married” button on a form under a question about marital status, for example, JavaScript can make the page display a new set of questions, ones that apply just to a married person. In other words, JavaScript actually changes the page’s HTML.

Dreamweaver’s Live view lets you preview interactive effects, such as those in the jQuery mobile page pictured here. In Live view, clicking a menu item shows you how the menu will behave in a real web browser. If you want to inspect the HTML the click creates, hit the F6 key—in this example, the drop-down menu sticks in place, and you can inspect the code using Live Code.

Figure 7-16. Dreamweaver’s Live view lets you preview interactive ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Dreamweaver CS4: The Missing Manual

Dreamweaver CS4: The Missing Manual

David Sawyer McFarland
Dreamweaver CC: The Missing Manual

Dreamweaver CC: The Missing Manual

Chris Grover, David Sawyer McFarland

Publisher Resources

ISBN: 9781449326999Errata Page