DOM Scripting: Web Design with JavaScript and the Document Object Model, Second Edition

  • 5h
  • Jeffrey Sambells, Jeremy Keith
  • Apress - ex-Peer Information
  • 2010

With this second edition of the popular DOM Scripting: Web Design with JavaScript and the Document Object Model comes a modern revision to update best practices and guidelines. It includes full coverage of HTML5 in a new, dedicated chapter, and details on JavaScript libraries and how they can help your scripting.

The book provides everything you'll need to start using JavaScript and the Document Object Model to enhance your web pages with client-side dynamic effects and user-controlled animation. It shows how JavaScript, HTML5, and Cascading Style Sheets (CSS) work together to create usable, standards-compliant web designs. We'll also cover cross-browser compatibility with DOM scripts and how to make sure they degrade gracefully when JavaScript isn't available.

DOM Scripting: Web Design with JavaScript and the Document Object Model focuses on JavaScript for adding dynamic effects and manipulating page structure on the fly using the Document Object Model. You'll start with a crash course in JavaScript and the DOM, then move on to several real-world examples that you'll build from scratch, including dynamic image galleries and dynamic menus. You'll also learn how to manipulate web page styles using the CSS DOM, and create markup on the fly.

If you want to create websites that are beautiful, dynamic, accessible, and standards-compliant, this is the book for you!

What you’ll learn

  • Apply dynamic behavior to your pages without inserting JavaScript in your markup
  • Write scripts that degrade gracefully when JavaScript isn’t available
  • Use web standards to ensure cross-browser compatibility
  • Harness the power of the DOM to create user-controlled animation
  • Also includes an introduction to Ajax

About the Authors

Jeremy Keith is a web developer living and working in Brighton, England. Working with the web consultancy firm Clearleft (clearleft.com), Jeremy enjoys building accessible, elegant websites using the troika of web standards: XHTML, CSS, and the DOM. His online home is adactio.com. Jeremy is also a member of the Web Standards Project (webstandards.org), where he serves as joint leader of the DOM Scripting Task Force. When he is not building websites, Jeremy plays bouzouki in the alt.country band Salter Cane (saltercane.com). He is also the creator and curator of one of the Web's largest online communities dedicated to Irish traditional music, The Session (thesession.org).

Jeffrey Sambells is a Canadian designer of pristine pixel layouts and a developer of squeaky clean code. Back in the good-old days of the Internet, he started a little company called We-Create. Today, he is still there as Director of Research and Development / Mobile. The title "Director of R&D" may sound flashy, but really, that just means he is in charge of learning and cramming as much goodness into products as possible—ensuring they're all just awesome. He is currently having fun exploring mobile design and development techniques. Jeffrey loves to learn. He has as much enthusiasm for digging in the dirt or climbing a cliff as he does for precisely aligning pixels or forcing that page to load just a little faster. What really pushes him forward is taking the bits of knowledge he has collected and piecing them together into something new and unique—something other people can be excited about, too. Along the way, Jeffrey has managed to graduate university, start a few businesses, write some books, and raise a wonderful family.

In this Book

  • A Brief History of JavaScript
  • JavaScript Syntax
  • The Document Object Model
  • A JavaScript Image Gallery
  • Best Practices
  • The Image Gallery Revisited
  • Creating Markup on the Fly
  • Enhancing Content
  • CSS-DOM
  • An Animated Slideshow
  • HTML5
  • Putting It All Together
SHOW MORE
FREE ACCESS

YOU MIGHT ALSO LIKE

Rating 4.0 of 3 users Rating 4.0 of 3 users (3)
Rating 5.0 of 1 users Rating 5.0 of 1 users (1)