BN.com Gift Guide

Sams Teach Yourself JavaScript in 24 Hours / Edition 4

Paperback (Print)
Used and New from Other Sellers
Used and New from Other Sellers
from $1.99
Usually ships in 1-2 business days
(Save 94%)
Other sellers (Paperback)
  • All (23) from $1.99   
  • New (1) from $45.00   
  • Used (22) from $1.99   

Overview

Learn JavaScript in 24 Hours

Covers JavaScript 1.8+, Ajax and jQuery

In just 24 lessons of one hour or less, you can learn how to create dynamic, interactive Web pages with the popular and ubiquitous JavaScript web programming language.

Using a straightforward, step-by-step approach, each lesson in this book clearly and carefully walks you through basic concepts and techniques, and helps you learn the essentials of JavaScript programming from the ground up.

Learn how to…

  • Use JavaScript to build dynamic, interactive Web pages
  • Debug scripts
  • Create scripts that work in all browsers
  • Work with HTML5 and CSS3
  • Leverage the popular jQuery library
  • Control CSS with simple JavaScripts
  • Add Ajax effects to your web pages
  • Script animations and music

Step-by-step instructions carefully walk you through the most common JavaScript programming tasks

Quizzes at end of every chapter help you build and test your knowledge

Interactive online exercises let you practice what you learn at the Codecademy web site with no downloads or installation needed

Sams Publishing has teamed up with Codecademy — the online place where anyone can learn and teach coding — to provide readers of Sams Teach Yoruself JavaScript in 24 Hours with an exclusive area on the Codecademy web site where you can supplement what you've learned in this book with some fun, fully interactive exercises and projects. After reading a lesson in the book you can roll up your sleeves and get some hands-on coding experience at codecademy.com/tracks/teachyourself

Read More Show Less

Product Details

  • ISBN-13: 9780672328794
  • Publisher: Sams
  • Publication date: 7/5/2006
  • Series: Sams Teach Yourself Series
  • Edition number: 4
  • Pages: 442
  • Sales rank: 1,412,379
  • Product dimensions: 7.01 (w) x 9.10 (h) x 0.96 (d)

Meet the Author

Phil Ballard is a professional web consultant specializing in website and intranet design, search engine optimization, server-side scripting, client-side design, and programming and hosting. He has written a number of books and online tutorials, including Sams Teach Yourself Ajax in 10 Minutes.

Michael Moncur is the owner of Starling Technologies, a consulting firm specializing in networking and the Internet. He is also a freelance webmaster and author, and has written books on JavaScript, networking, and MCSE training.

Read More Show Less

Table of Contents

Contents at a Glance

Introduction

Part I: Introducing the Concept of Web Scripting and the JavaScript Language

Hour 1............................................................................... Understanding JavaScript

2 Creating Simple Scripts

3 Getting Started with JavaScript Programming

4 Working with the Document Object Model (DOM)

Part II: Learning JavaScript Basics

Hour 5............................................................ Using Variables, Strings, and Arrays

6 Using Functions and Objects

7 Controlling Flow with Conditions and Loops

8 Using Built-in Functions and Libraries

Part III: Learning More About the DOM

Hour 9..................................................................................... Responding to Events

10 Using Windows and Frames

11 Getting Data with Forms

12 Working with Style Sheets

13 Using the W3C DOM

14 Using Advanced DOM Features

Part IV: Working with Advanced JavaScript Features

Hour 15................................................................................. Unobtrusive Scripting

16 Debugging JavaScript Applications

17 AJAX: Remote Scripting

18 Greasemonkey: Enhancing the Web with JavaScript

Part V: Building Multimedia Applications with JavaScript

Hour 19................................................................ Using Graphics and Animation

20 Working with Sound and Plug-ins

Part VI: Creating Complex Scripts

Hour 21................................................... Building JavaScript Drop-down Menus

22 Creating a JavaScript Game

23 Creating JavaScript Applications

24 Your Future with JavaScript

Part VII: Appendixes

A Other JavaScript Resources

B Tools for JavaScript Developers

C Glossary

D JavaScript Quick Reference

E DOM Quick Reference

Index


Table of Contents

Part I: Introducing the Concept of Web Scripting and the JavaScript Language

Hour 1: Understanding JavaScript 7

Learning Web Scripting Basics.... 7

How JavaScript Fits into a Web Page... 9

Browsers and JavaScript

Specifying JavaScript Versions

JavaScript Beyond the Browser

Exploring JavaScript’s Capabilities

Alternatives to JavaScript

Hour 2: Creating Simple Scripts

Tools for Scripting

Displaying Time with JavaScript

Beginning the Script

Adding JavaScript Statements

Creating Output

Adding the Script to a Web Page

Testing the Script

Hour 3: Getting Started with JavaScript Programming

Basic Concepts

JavaScript Syntax Rules

Using Comments

Best Practices for JavaScript

Hour 4: Working with the Document Object Model (DOM)

Understanding the Document Object Model (DOM)

Using Window Objects

Working with Web Documents

Accessing Browser History

Working with the Location Object

Part II: Learning JavaScript Basics

Hour 5: Using Variables, Strings, and Arrays

Using Variables

Understanding Expressions and Operators

Data Types in JavaScript

Converting Between Data Types

Using String Objects

Working with Substrings

Using Numeric Arrays

Using String Arrays

Sorting a Numeric Array

Hour 6: Using Functions and Objects

Using Functions

Introducing Objects

Using Objects to Simplify Scripting

Extending Built-in Objects

Hour 7: Controlling Flow with Conditions and Loops

The if Statement

Using Shorthand Conditional Expressions

Testing Multiple Conditions with If and Else

Using Multiple Conditions with switch

Using for Loops

Using While Loops

Using Do…While Loops

Working with Loops

Looping Through Object Properties

Hour 8: Using Built-in Functions and Libraries

Using the Math Object

Working with Math Functions

Using the with Keyword

Working with Dates

Using Third-Party Libraries

Other Libraries

Part III: Learning More About the DOM

Hour 9: Responding to Events

Understanding Event Handlers

Using Mouse Events

Using Keyboard Events

Using the onLoad and onUnload Events

Hour 10: Using Windows and Frames

Controlling Windows with Objects

Moving and Resizing Windows

Using Timeouts

Displaying Dialog Boxes

Working with Frames

Hour 11: Getting Data with Forms

The Basics of HTML Forms

Using the Form Object with JavaScript

Scripting Form Elements

Displaying Data from a Form

Sending Form Results by Email

Hour 12: Working with Style Sheets

Style and Substance

Defining and Using CSS Styles

Using CSS Properties

Creating a Simple Style Sheet

Using External Style Sheets

Controlling Styles with JavaScript

Hour 13: Using the W.3C DOM

The DOM and Dynamic HTML

Understanding DOM Structure

Creating Positionable Elements (Layers)

Hour 14: Using Advanced DOM Features

Working with DOM Nodes

Hiding and Showing Objects

Modifying Text Within a Page

Adding Text to a Page

Part IV: Working with Advanced JavaScript Features

Hour 15: Unobtrusive Scripting

Scripting Best Practices

Reading Browser Information

Cross-Browser Scripting

Supporting Non-JavaScript Browsers

Hour 16: Debugging JavaScript Applications

Avoiding Bugs

Basic Debugging Tools

Creating Error Handlers

Advanced Debugging Tools

Hour 17: AJAX: Remote Scripting

Introducing AJAX

Using XMLHttpRequest

Creating a Simple AJAX Library

Creating an AJAX Quiz Using the Library

Debugging AJAX Applications

Hour 18: Greasemonkey: Enhancing the Web with JavaScript

Introducing Greasemonkey

Working with User Scripts

Creating Your Own User Scripts

Part V: Building Multimedia Applications with JavaScript

Hour 19: Using Graphics and Animation

Using Dynamic Images

Creating Rollovers

A Simple JavaScript Slideshow

Hour 20: Working with Sound and Plug-Ins

Introducing Plug-Ins

JavaScript and Flash

Playing Sounds with JavaScript

Testing Sounds in JavaScript

Part VI: Creating Complex Scripts

Hour 21: Building JavaScript Drop-Down Menus

Designing Drop-Down Menus

Scripting Drop-Down Menu Behavior

Hour 22: Creating a JavaScript Game

About the Game

Creating the HTML Document

Creating the Script

Adding Style with CSS

Hour 23: Creating JavaScript Applications

Creating a Scrolling Window

Style Sheet Switching with JavaScript

Hour 24: Your Future with JavaScript

Learning Advanced JavaScript Techniques

Future Web Technologies

Planning for the Future

Moving on to Other Languages

Part VII: Appendixes

Appendix A: Other JavaScript Resources

Other Books

JavaScript Websites

Web Development Sites

This Book’s Website

Appendix B: Tools for JavaScript Developers

HTML and Text Editors

HTML Validators

Debugging Tools

Appendix C: Glossary

Appendix D: JavaScript Quick Reference

Built-in Objects

Creating and Customizing Objects

JavaScript Statements

JavaScript Built-in Functions

Appendix E: DOM Quick Reference

DOM Level 0

DOM Level 1

Index

Read More Show Less

Customer Reviews

Average Rating 3
( 5 )
Rating Distribution

5 Star

(0)

4 Star

(2)

3 Star

(1)

2 Star

(1)

1 Star

(1)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 5 Customer Reviews
  • Anonymous

    Posted March 9, 2001

    Great point to start JavaScript

    This book takes you from 'know nothing' and steps you up to any level you want to achieve. I liked the examples and the fact you can get them from their website to so you won't type them all over. Many of the tips answered my questions and suggested some really good ways of doing things. I would recommend it to anyone wanting to get on the JavaScript wagon.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted May 2, 2009

    No text was provided for this review.

  • Anonymous

    Posted January 26, 2010

    No text was provided for this review.

  • Anonymous

    Posted April 15, 2011

    No text was provided for this review.

  • Anonymous

    Posted July 9, 2012

    No text was provided for this review.

Sort by: Showing all of 5 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)