SmartSellTM - The New Way to Sell Online

Shop over a million Toys in our Huge New Range

Simply Javascript

New or Used: $36.98
New or Used: $36.98

Product Description
Product Details

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 * 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

About the Author

Kevin Yank is a world-renowned leader in web development. When not writing best sellers, Kevin is the Technical Director of and editor of the popular SitePoint Tech Times newsletter.Cameron Adams is an author of multiple web development books and is often referred to as a "Web Technologist." In addition to his extensive JavaScript experience, Cameron's passions extend to CSS, PHP, and graphic design.

Ask a Question About this Product More...
Write your question below:
Look for similar items by category
Home » Books » Computers » Programming » CGI
How Fishpond Works
Fishpond works with suppliers all over the world to bring you a huge selection of products, really great prices, and delivery included on over 25 million products that we sell. We do our best every day to make Fishpond an awesome place for customers to shop and get what they want — all at the best prices online.
Webmasters, Bloggers & Website Owners
You can earn a 5% commission by selling Simply Javascript on your website. It's easy to get started - we will give you example code. After you're set-up, your website can earn you money while you work, play or even sleep! You should start right now!
Authors / Publishers
Are you the Author or Publisher of a book? Or the manufacturer of one of the millions of products that we sell. You can improve sales and grow your revenue by submitting additional information on this title. The better the information we have about a product, the more we will sell!
Item ships from and is sold by, Inc.
Back to top