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

Front Cover
Apress, Nov 7, 2006 - Computers - 368 pages
14 Reviews
This book deals with a programming language, but it isn’t intended for programmers. This is a book for web designers. Specifically, this book is intended for standards-aware designers who are comfortable using CSS and XHTML. If that sounds like you, read on... This book is made up of equal parts code and concepts. Don’t be frightened by the code: I know it might look intimidating at first, but once you’ve grasped the concepts behind the code, you’ll find yourself reading and writing in a new language. Learning a programming language might seem like a scary prospect, but it needn’t be. DOM Scripting might appear to be more verbose than, say, CSS, but once you’ve got the hang of the syntax, you’ll find yo- self armed with a powerful web development tool. In any case, the code is there simply to illustrate the concepts. I’ll let you in on a secret: nobody memorizes all the syntax and keywords that are part and parcel of any programming language. That’s what reference books are for. This isn’t a reference book. I’m going to cover the bare minimum of syntax required to get up and running with JavaScript. I’m really going to focus on the ideas behind DOM Scripting. A lot of these ideas might already be familiar to you: graceful degradation, progressive enhancement, and user-centered design are important concepts in any aspect of front-end web development.
 

What people are saying - Write a review

User ratings

5 stars
6
4 stars
5
3 stars
2
2 stars
0
1 star
1

LibraryThing Review

User Review  - Molave - LibraryThing

A pretty good introduction to the Document Object Model (DOM) and how to apply it to creating web sites. The basics are covered (although not in much depth), and a few samples are shown in detail. Perfect for a beginner, but may bore the intermediate coder. Read full review

LibraryThing Review

User Review  - niwig - LibraryThing

Great introduction to scripting for novice developers. Each chapter builds on the previous chapter, providing clear instructions for building an increasingly complex Web application. Keith provides clear and thorough explanations of what is happening every step of the way. Read full review

Contents

Lets start with the placeholder image Im going to use
60
Expanding the function
65
Heres an example of the image gallery with a simple
74
7
123
The JavaScript has created markup on the fly and added
142
Reference the displayAccesskeysjs file with a new set of script
174
11
247
This paragraph has been marked up with an id of
256
Load photoshtml in a web browser to see the image
276
Copyright

Other editions - View all

Common terms and phrases

Popular passages

Page 14 - The Document Object Model is a platform- and language-neutral interface that will allow programs and scripts to dynamically access and update the content, structure, and style of documents.
Page 22 - English grammar demands that sentences begin with a capital letter and end with a period, the syntax of JavaScript is much more forgiving.

References to this book

About the author (2006)

Jeremy Keith is a web developer living and working in Brighton, England. Working with the web consultancy firm Clearleft (Clearleft.com), he 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 WebStandards.org, where he serves as joint leader of the DOM Scripting Task Force. When he's 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, TheSession.org.

Bibliographic information