Product Details
JavaScript: The Definitive Guide (Nutshell Handbook)

JavaScript: The Definitive Guide (Nutshell Handbook)
By David Flanagan

Price:

This item is not available for purchase from this store.
Click here to go to Amazon to see other purchasing options.


30 new or used available from $0.47

Average customer review:

Product Description

From the bestselling author of Java in a Nutshell comes the definitive reference manual for JavaScript, the HTML extension that allows programs to be embedded in web pages, making them more active than ever before. In this book, David Flanagan describes how JavaScript really works, and when it doesn't. The first eight chapters document the core JavaScript language, and the next six describe how JavaScript works on the client side to interact with the web browser and with the web page. Following this detailed explanation of JavaScript features is a complete reference section that documents every object, property, method, event handler, function, and constructor used by client-side JavaScript. This second edition also describes the server-side JavaScript application, LiveWire, developed by Netscape and Sun Microsystems. Using LiveWire, developers can quickly and easily convert JavaScript applications and any HTML pages containing JavaScript code into platform-independent byte codes ready to run on any Netscape 2.0 Server. The book describes the version of JavaScript shipped with Navigator 2.0, 2.0.1, and 2.0.2, and also the much-changed version of JavaScript shipped with Navigator 3.0. It also covers LiveConnect, used for communication between JavaScript and Java applets, and commonly encountered bugs on JavaScript objects.


Product Details

  • Amazon Sales Rank: #190184 in Books
  • Published on: 1997-01
  • Original language: English
  • Number of items: 1
  • Binding: Paperback
  • 664 pages

Editorial Reviews

Amazon.com Review
In typical O'Reilly & Associates fashion, this book documents every nuance of the JavaScript 1.1 language specification. It may appear dry on the surface (many pages have the spare style of UNIX online documentation), but this is the book you'll pull off your shelf when you want to know which method returns the primitive value of an object. Flanagan's book comes out ahead of its competitors in a few other areas, too. JavaScript features a useful discussion of the limited JavaScript support found in Microsoft Internet Explorer and provides excellent documentation of LiveConnect, the software that allows JavaScript to communicate with Java applets. It also offers a taste of what's in store for the just-released JavaScript 1.2.

With a relatively small number of examples and no CD-ROM, this guide is more of a reference than a tutorial. It will serve experienced JavaScript programmers far better than those who are just starting out with the language.

From Library Journal
O'Reilly books have a reputation among programmers for providing some of the best technical information for professionals. No exception, these three web-related books will only enhance O'Reilly's reputation. JavaScript is not Java, but it is very useful because JavaScript code does not need to be compiled and the scripts can be embedded directly into an HTML document. Flanagan's work is an excellent book for programmers interested in learning it quickly. Grand, meanwhile, provides an exceptionally clear discussion of Java itself that is particularly useful for a working programmer moving from C++ to Java. Threads are what makes Java a particularly useful language for multiprocessing?the ability to appear to do more than one thing at a time?which is what the Internet is all about. The tricky part of threads is that the concept is new for most users. Oaks offers a very clear discussion of how to spawn a process, when to spawn, and how to synchronize and schedule it, all illustrated with good network examples.
Copyright 1997 Reed Business Information, Inc.

Review
"JavaScript is not a cookbook, although plenty of example code is include; nor is it an introduction for beginners, although every aspect of JavaScript is covered from the ground up. It is - what it sets out to be - definitive reference guide for the JavaScript programmer." - Richard Drummond, LinuxFormat, June 2002


Customer Reviews

The Final Word (incl review of critics)4
As you may know, this book is considered THE Javascript book. What's makes the book worthwhile is it's fine discussion of Javascript's innerworkings. If you really want learn how Javascript's objects, functions, and data type handling work, then this is the book for you. The criticisms of this book fall into three catagories: 1) "Not for beginners". Yes, this book is not intended for people who have never studied object oriented programming. But that doesn't make it a 2 star book! Even beginners, if they are serious enough, will eventually need some clues about how Javascript really works. 2) "It's outdated". Again, yes; the reference section, and some of the browser dependant discussion is clearly outdated; BUT that still does not make this an outdated book! The author's in-depth explanation of Javascript innerworkings may never become outdated, and that alone is what makes this book worthwhile. 3) "Not enough examples". This is the only criticism that I

actually agree with, and therefore the 4, instead of 5 stars. Not only can this book benefit from additional small examples, but the author's explanations are sometimes lacking, or even worse, missing. On a few examples, he basically says, "This is worthy of study. Go ahead and study it." Sorry, I expect more from my books, than a grumpy professor in a university lecture hall, nearing the end of class.

Hard core Javascript theory.....at last.4
After trying to learn javascript from the visual series "javascript for the world wide web, 3rd ed" (and being thoroughly disappointed), I finally have found a book that describes the fundamentals of the javascript language in detail. This book explains from an academic perspective the rules, usage, and syntax of javascript. It leads the reader into the depths of how javascript implements an object-oriented paradigm without getting too esoteric. It can be difficult reading at times, but the true nature of javascript programming is not that of a simple little scripting language as some would have you believe. The coding examples could have been better, with more full-sized scripts showing the language in action instead of the numerous 1-4 line code snipets. The one big distraction I noticed was the seemingly constant references to netscape navigator, and all the bugs present in older versions of that browser. Unfortunately, this dated the book and tended to highlight a bias when the author would have been better off staying with the academic focus. Even still, the majority of the theory is unaffected by nav or ie, and the reference section is essential for any serious javascript developer. It is noted that this book was copyright 1998, so "cutting edge" javascript extensions will not be included, but the fundamental theory behind the language remains intact. With the combination of this book (theory and reference) and the visual series book (cutesy web page tricks), I can finally get on with the task of finishing my web site.

The best Javascript reference4
This is the best Javascript reference available.

The book is divided into three sections. The first covers "Core Javascript", defining the language itself with only occasional references to how you might use it in a browser. This initially seemed to me to be a roundabout way to approach the language--why wouldn't you want to explain it by examples in a web page? However, after becoming more familiar with the language I think it was absolutely the right decision, since it avoids confusing the document object model (see below for more about that) with the language itself, a confusion common among beginners.

At the end of the first section (which developers experienced in other languages can skim, but shouldn't skip) you know what Javascript code looks like and how to do assignments, define functions, and so on. The second section, "Client-side Javascript", is where examples start to show up that you can really run in a test page of your own. The examples are good and there are plenty of them.

The heart of the second section is the discussion of the document object model. After some introductory discussion, covering windows and frames and some of the more common Javascript tasks, there's an overview of the DOM. Subsequent chapters cover it in more detail. This organization makes it pretty easy to find what you need without even resorting to the index. For example, I find the forms chapter, and the chapter on how to use cookies to save state, to be very useful, and easy to find information in.

Finally, there's a reference section at the back. This is the most valuable section once you're well on your way with the language, and is what I now use most of all. It's comprehensive and clearly written.

The book does have one weakness, which has been noted by other reviewers here: it doesn't have a "cookbook" section, showing you how to do common tasks with Javascript. This is a serious omission because of the nature of Javascript usage. Very often a webmaster for a small non-profit or a small business will decide they want to do a rollover, or add an alert for form validation failures, or something similar. Users like this need something equivalent to the "Perl Cookbook"; a "How to . . ." section that gives you an example close to what you need.

Despite this caveat, however, this is still the best book around: an excellent reference, and a great way to learn the language.