countdown boutiques-francophones Learn more vpcflyout Furniture All-New Kindle Music Deals Store sports Tools Registry
Simply JavaScript and over one million other books are available for Amazon Kindle. Learn more

Vous voulez voir cette page en français ? Cliquez ici.


or
Sign in to turn on 1-Click ordering.
More Buying Choices
Have one to sell? Sell yours here
Start reading Simply JavaScript on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Simply JavaScript [Paperback]

Yank , Adams
5.0 out of 5 stars  See all reviews (2 customer reviews)
List Price: CDN$ 51.80
Price: CDN$ 30.52 & FREE Shipping. Details
You Save: CDN$ 21.28 (41%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 7 left in stock (more on the way).
Ships from and sold by Amazon.ca. Gift-wrap available.
‹  Return to Product Overview

Table of Contents

0. Preface * Who Should Read this Book? * What's Covered in this Book? * The Book's Web Site o The Code Archive o Updates and Errata * The SitePoint Forums * The SitePoint Newsletters * Your Feedback * Acknowledgments o Kevin Yank o Cameron Adams * Conventions Used in this Book o Code Samples o Tips, Notes, and Warnings 1. 1. The Three Layers of the Web * Keep 'em Separated * Three Layers o HTML for Content o CSS for Presentation o JavaScript for Behavior * The Right Way * JavaScript Libraries * Let's Get Started! 2. 2. Programming with JavaScript * Running a JavaScript Program * Statements: Bite-sized Chunks for your Browser * Comments: Bite-sized Chunks Just for You * Variables: Storing Data for your Program o Variable Types: Different Types for Different Data * Conditions and Loops: Controlling Program Flow o Conditions: Making Decisions o Loops: Minimizing Repetition * Functions: Writing Code for Later o Arguments: Passing Data to a Function o Return Statements: Outputting Data from a Function o Scope: Keeping your Variables Separate * Objects * Unobtrusive Scripting in the Real World * Summary 3. 3. Document Access * The Document Object Model: Mapping your HTML o Text Nodes o Attribute Nodes * Accessing the Nodes you Want o Finding an Element by ID o Finding Elements by Tag Name o Finding Elements by Class Name o Navigating the DOM Tree o Interacting with Attributes * Changing Styles o Changing Styles with Class * Example: Making Stripy Tables o Finding All Tables with Class dataTable o Getting the Table Rows for Each Table o Adding the Class alt to Every Second Row o Putting it All Together * Exploring Libraries o Prototype o jQuery o Dojo * Summary 4. 4. Events * An Eventful History * Event Handlers o Default Actions o The this Keyword o The Problem with Event Handlers * Event Listeners o Default Actions o Event Propagation o The this Keyword o The Internet Explorer Memory Leak o Putting it All Together * Example: Rich Tooltips o The Static Page o Making Things Happen o The Workhorse Methods o The Dynamic Styles o Putting it All Together * Example: Accordion o The Static Page o The Workhorse Methods o The Dynamic Styles o Putting it All Together * Exploring Libraries * Summary 5. 5. Animation * The Principles of Animation * Controlling Time with JavaScript o Using Variables with setTimeout o Stopping the Timer o Creating a Repeating Timer o Stopping setInterval * Revisiting Rich Tooltips * Old-school Animation in a New-school Style * Path-based Motion o Animating in Two Dimensions o Creating Realistic Movement o Moving Ahead * Revisiting the Accordion Control o Making the Accordion Look Like it's Animated o Changing the Code * Exploring Libraries o script.aculo.us * Summary 6. 6. Form Enhancements * HTML DOM Extensions o Example: Dependent Fields o Example: Cascading Menus * Form Validation o Intercepting Form Submissions o Regular Expressions o Example: Reusable Validation Script * Custom Form Controls o Example: Slider * Exploring Libraries o Form Validation o Custom Controls * Summary 7. 7. Errors and Debugging * Nothing Happened! * Common Errors o Syntax Errors o Runtime Errors o Logic Errors * Debugging with Firebug * Summary 8. 8. Ajax * XMLHttpRequest: Chewing Bite-sized Chunks of Content o Creating an XMLHttpRequest Object o Calling a Server o Dealing with Data * A Word on Screen Readers * Putting Ajax into Action * Seamless Form Submission with Ajax * Exploring Libraries o Prototype o Dojo o jQuery o YUI o MooTools * Summary 9. 9. Looking Forward * Bringing Richness to the Web o Easy Exploration o Easy Visualization o Unique Interaction * Rich Internet Applications o Widgets * JavaScript Off the Web * Exploring Libraries o Dojo o Google Web Toolkit * Summary 10. A. The Core JavaScript Library * The Object * Event Listener Methods * Script Bootstrapping * CSS Class Management Methods * Retrieving Computed Styles * The Complete Library 11. Index

‹  Return to Product Overview