Home > Store > Open Source > Ajax & JavaScript

larger cover

Add To My Wish List

Sams Teach Yourself JavaScript in 24 Hours, 3rd Edition

  • By Michael Moncur
  • Published Jun 7, 2002 by Sams. Part of the Sams Teach Yourself series.
    • Copyright 2002
    • Dimensions: 7-3/8" x 9-1/8"
    • Pages: 428
    • Edition: 3rd
    • Book
    • ISBN-10: 0-672-32406-7
    • ISBN-13: 978-0-672-32406-2
    • eBook (Adobe DRM)
    • ISBN-10: 0-7686-6024-6
    • ISBN-13: 978-0-7686-6024-1

Register your product to gain access to bonus material or receive a coupon.

  • Description
  • Downloads
  • Reviews
  • Sample Content

Product Author Bios

Michael Moncur is a freelance Webmaster and author, and has worked with the Internet since Gopher was still a cool thing. He wrote Sams Teach Yourself DHTML in 24 Hours, and has also written several bestselling books about networking and the CNE and MCSE programs. In his spare time (about an hour per year) he composes music and builds model rockets.

JavaScript is one of the easiest, most straightforward ways to enhance a Web site with interactivity.

Sams Teach Yourself JavaScript in 24 Hours serves as an easy-to-understand tutorial on both scripting basics and JavaScript itself. The book is written in a clear and personable style with an extensive use of practical, complete examples.

The Third Edition of Sams Teach Yourself JavaScript in 24 Hours includes material on the latest developments in JavaScript and Web scripting.

Readers will learn how to use JavaScript to enhance Web pages with interactive forms, objects, and cookies. They will also discover how to use JavaScript to work with games, animation, and multimedia.

Downloads

The source code for the examples developed in the book in one ZIP file - 243 kb -- code.zip

The source code for the examples developed in the book in one SIT file - 320 kb -- code.sit.hqx

For updates and corrections to the code and/or book, please visit the author's book companion web site at http://www.jsworkshop.com.

Customer Reviews

44 of 45 people found the following review helpful
4.0 out of 5 stars Good book, in terms of techniques provided and taught, June 7, 2001
Amazon Verified Purchase(What's this?)
As a junior level computer science major at the University of New Orleans, I would like to inform everybody who is thinking about buying this book or any other programming-related book that computer programming, along with other logical subjects, such as mathematics, involves a lot of practice. If you were to read the chapters in this book as if you were reading a John Grisham novel, you will not understand anything. I am telling you all this first because, as you have noticed, this book is receiving very low ratings from a majority of the reviewers because these reviewers claim that the book's format and content are rather cryptic in nature. As a computer science major, I've read my share of programming books. This book is, in my opinion, the second best book on programming I have ever read. Reviewers who have given this book a low rating must not have taken the time necessary to try and comprehend each chapter or, in some cases, each sentence written.

Moncur dwells a good... Read more

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


55 of 60 people found the following review helpful
4.0 out of 5 stars All the basics presented in a set of clear examples, October 20, 2000
By 
Charles Ashbacher (Marion, Iowa United States) - See all my reviews
(TOP 500 REVIEWER)    (VINE VOICE)    (HALL OF FAME REVIEWER)   
If someone asks me where to start when they want to learn programming, my standard response is to tell them to learn HTML. If they also want to be able to make money from their knowledge, my response is to tell them to learn HTML and JavaScript. HTML is certainly the most widely used "programming language" in the world today, and JavaScript cannot be far behind. Furthermore, neither requires a great deal of overhead in the form of costly compilers or interpreters.
However, finding material that makes learning them easy and enjoyable is difficult. This book satisfies both criteria at about an eight on a scale of one to ten where ten is the best. The examples are clear, very precise in their coverage and in combination cover the features of the language that you need to know. Furthermore, the coverage includes JavaScript 1.5, which does have some significant new features. While reading this book for review, I learned a few things that I had not been aware of.
If you are... Read more
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


36 of 39 people found the following review helpful
5.0 out of 5 stars The Right Stuff, Clearly Explained, October 17, 2001
Some people are saying this book TOO heavy for new programmers while others are saying it is NOT ENOUGH technical information. As someone who relies on technical books for the purpose of teaching myself new technologies, I should point out that most people have to buy more than one book to quickly master a new programming language. And I definitely recommend this book for persons new to javascript only or new to programming in general.

After this book, I had that really good feeling I get when a good base has been established in a new area of technical knowledge -- when the first stuff that came in got laid down right, and then, everything that comes in after that builds easily on top of that good foundation. I am remembering things I read the first time, and everything else I have been learning since sticks, too. There are a lot of browser variation and version differences issues in javascript, and that is a problem. This author copes with it well, which is tough in the chaotic... Read more

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


Share your thoughts with other customers:
 See all 37 customer reviews...

Online Sample Chapters

Getting Data with Forms Using JavaScript

How JavaScript Programs Work

Using JavaScript to Work with Windows and Frames

Using JavaScript to Respond to Events

Working with JavaScript's Document Object Model

Table of Contents

(NOTE: Each chapter concludes with a Summary, Q&A, Quiz and Exercises.)

Introduction.

How to Use This Book. Q&A, Quiz, and Exercises. This Book's Web Site.

I. GETTING STARTED.

Hour 1. Understanding JavaScript.

Learning Web Scripting Basics. How JavaScript Fits into a Web Page. Browsers and JavaScript. Alternatives to JavaScript.

Hour 2. Creating a Simple Script.

Tools for Scripting. What Time is It? Beginning the Script. Adding JavaScript Statements. Creating Output. Adding the Script to a Web Page. Testing the Script. Workshop: Hiding Scripts from Older Browsers.

Hour 3. How JavaScript Programs Work.

Combining Tasks with Functions. Understanding Objects. Handling Events. Conditional Statements. Loops. Which Script Runs First? Workshop: Using Comments.

II. LEARNING JAVASCRIPT BASICS.

Hour 4. Using Functions and Variables.

Using Functions. Understanding Expressions and Operators. Using Variables. Data Types in JavaScript. Converting Between Data Types. Workshop: Storing User Data in Variables.

Hour 5. Using Strings and Arrays.

Using String Objects. Working with Substrings. Using Numeric Arrays. Using String Arrays. Sorting a Numeric Array. Workshop: Displaying a Scrolling Message.

Hour 6. Testing and Comparing Values.

The if Statement. Using Shorthand Conditional Expressions. Using Multiple Conditions with switch. Workshop: Evaluating a User Response.

Hour 7. Repeating Yourself: Using Loops. Using for Loops. Using while Loops. Using do…while Loops. Working with Loops. Using for…in loops. Workshop: Working with Arrays and Loops.

Hour 8. Using Math and Date Functions.

What Is an Object? The Math Object. Working with Dates. Workshop: Working with the Math Object.

III. THE DOCUMENT OBJECT MODEL (DOM).

Hour 9. Working with the Document Object Model.

Understanding the Document Object Model. Using window Objects. Working with Web Documents. Accessing Browser History. Working with the location Object. Reading Information about the Browser. Workshop: Creating Back and Forward Buttons.

Hour 10. Responding to Events.

Understanding Event Handlers. Using Mouse Events. Using Keyboard Events. Using the onLoad and onUnload Events. Workshop: Adding Link Descriptions to a Web Page.

Hour 11. Using Windows and Frames.

Controlling Windows with Objects. Moving and Resizing Windows. Using Timeouts. Displaying Dialog Boxes. Working with Frames. Workshop: Creating a Navigation Frame.

Hour 12. 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. Workshop: Validating a Form.

Hour 13. Using Graphics and Animation.

Using Image Maps with JavaScript. Using Dynamic Images in JavaScript. Creating Rollovers. Workshop: Creating a Simple Animation.

IV. MOVING ON TO ADVANCED JAVASCRIPT FEATURES.

Hour 14. Creating Cross-Browser Scripts.

Reading Browser Information. Supporting Browsers with JavaScript. Supporting Non-JavaScript Browsers. Workshop: Scripting for Multiple Browsers.

Hour 15. Creating Custom Objects.

Using Objects to Simplify Scripting. Creating an Object Instance. Customizing Built-In Objects. Workshop: Storing Data in Objects.

Hour 16. Working with Sounds and Plug-Ins.

Introducing Plug-Ins. Working with Plug-In Objects. Workshop: Playing Music with the Mouse.

Hour 17. Debugging JavaScript Applications.

Avoiding Bugs. Basic Debugging Tools. Creating Error Handlers. Workshop: Debugging a Script.

V. WORKING WITH DYNAMIC HTML (DHTML).

Hour 18. 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. Workshop: Creating Dynamic Styles.

Hour 19. Using Dynamic HTML (DHTML).

Understanding DOM Structure. Creating Positionable Elements. Workshop: Creating Dynamic HTML Animation.

Hour 20. Using Advanced DOM Features.

Working with DOM Nodes. Hiding and Showing Objects. Modifying Text within a Page. Adding Text to a Page. Workshop: A Better Scrolling Message.

VI. PUTTING IT ALL TOGETHER.

Hour 21. Improving a Web Page with JavaScript.

Creating the HTML Document. Using Drop-Down Lists for Navigation. Adding Link Descriptions. Adding Graphic Links. Workshop: Finishing up the Page.

Hour 22. Creating a JavaScript Game.

Planning the Program. Writing the Program. Workshop: Putting It All Together.

Hour 23. Creating DHTML Applications.

Creating a Dynamic Site Map. Creating Drop-Down Menus. Workshop: Creating a Scrolling Text Box.

Hour 24. JavaScript Tips and Tricks.

Learning Advanced JavaScript Techniques. Future Web Technologies. Planning for the Future. A few JavaScript Tips. Workshop: Using Cookies.

VII. APPENDICES.

Appendix A. Other JavaScript Resources.

Other Books. JavaScript Web Sites. Web Site Development. Dynamic HTML Web Sites. CGI Resources. This Book's Web Site.

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.

 

Book

This product currently is not for sale.

Buy

eBook (Adobe DRM)  $19.99  $15.99

About Adobe DRM eBooks

Information This eBook requires the free Adobe® Digital Editions software.

Before downloading this DRM-encrypted PDF, be sure to:


  • Install the free Adobe Digital Editions software on your machine. Adobe Digital Editions only works on Macintosh and Windows, and requires the Adobe Flash Player. Please see the official system requirements.
  • Authorize your copy of Adobe Digital Editions using your Adobe ID. If you don't already have an Adobe ID, you can create one here.
Purchase Reward: One Month Free Subscription
By completing any purchase on InformIT, you become eligible for an unlimited access one-month subscription to Safari Books Online.

Get access to thousands of books and training videos about technology, professional development and digital media from more than 40 leading publishers, including Addison-Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media, Wrox, Apress, and many more. If you continue your subscription after your 30-day trial, you can receive 30% off a monthly subscription to the Safari Library for up to 12 months. That's a total savings of $199.