Showing posts with label dom. Show all posts
Showing posts with label dom. Show all posts

JavaScript: The Definitive Guide Review

JavaScript: The Definitive Guide
Average Reviews:

(More customer reviews)
The previous edition of this book, 4th edition, remained at arm's length at all times at work and rescued me repeatedly from various day-to-day JavaScript challenges. It has become tattered from rigorous use. I always loved how the book was organized, with the first half as a walk through the entire gamut of JavaScript's workings -- tutorials, walk-thrus, code samples, cross-browser issues, and practical solutions -- and the second half of the book as a complete JavaScript language and DOM reference. That already very useful format has actually been improved upon. David has combined the DOM API reference and client-side JavaScript reference into a single alphabetized section. Now that I think about it, I did find myself flipping back and forth a lot in the previous edition, so this is a welcome improvement. Each object, property, and method contains a helpful "availability" of that item. This may be the standards spec it came from [DOM Level 2 HTML, ECMAScript v1], the JavaScript version in which it emerged [JavaScript 1.0], or a list of browser versions, if it is a proprietary feature. This is critical info to have at-a-glance - could perhaps save you 2 days of work implementing a non-standard, IE-specific JavaScript feature, when you could have been coding the standards-compliant equivalent. David has removed a lot of the deprecated, not-widely-adopted DOM interfaces that no longer apply to modern browsers. David has also moved focus away from some of the more oddball DOM interfaces that have been replaced by more sensible JavaScript objects that implement those interfaces, for example, window.getComputedStyle() rather than AbstractView.getComputedStyle(). In other words, David has removed all of the "stuff that still exists, but you no longer need to worry about". This makes for a more focused, less cluttered, "on topic", useful tome. I don't need to know about the 10 different methods that browser manufacturers fought over 7 years ago. Tell me what I need to know NOW to write practical, functioning, modern, cross-browser JavaScript. That's exactly what Mr. Flanagan has accomplished.
What else is new in the 5th edition?
1. Nested functions and closures.
2. A dedicated "Classes, Constructors, and Prototypes" chapter, with much more coverage on object-oriented programming in JavaScript.
3. A new chapter on Modules and Namespaces.
4. New chapter on scripting Java with JavaScript.
5. Coverage of the legacy (Level 0) DOM has been combined with the W3C standard DOM. More consolidation. Less flipping back and forth.
6. Cookies and Client-Side Persistence. Updated coverage on cookies, and brand new coverage of other client-side persistence techniques, like IE userData persistence, and Flash Shared Object Persistence.
7. AJAX - Coverage of scripted HTTP calls using the now famous XMLHttpRequest object.
8. XML - Demonstrates how to create, load, transform, query, serialize, and extract info from XML docs.
9. Client-Side Graphics - JavaScript's graphics capabilities. The cutting edge tag, SVG, VML, and communicating with the Flash plug-in.
10. Scripting Java Apps and Flash Movies - Another brand new chapter.
So, is the 5th edition worth the purchase? Absolutely. This book is a must-have for any web development library. I turn to it repeatedly. Here's an example.
Last week, I overheard a developer on my team proclaim to someone, "We can't do that. JavaScript can't control stuff in another frame." They went and informed my boss how monumental their task was becoming as they proposed a hacky, inelegant server-side workaround.
I managed to grab the one developer and said, "JavaScript certainly can talk across frames."
"Really?!", he asked, astonished. I opened "The Definitive Guide" to the part on cross-frame scripting and bookmarked it for them.
"Oh, wow! GREAT!", he exclaimed, "That completely solves our problem. Totally cool!" and zipped away book in hand. Hours later, they had it worked out, rather than days with the server-side solution.
I've seen some one-star, complaint-type reviews posted that this isn't a beginner book. Exactly right, but I'm confused as to how a quality rating [of 1 to 5 stars] equates, in any way, to skill level of the book, or its ability to meet someone's self-conceived personal notions of what the book is supposed to contain. There are some overview-type chapters that go over syntax, operators, scope, expressions, and the usual array of language basics, but these reviewers are correct in that this book is not a beginner's tutorial on JavaScript. It is a meat and potatoes, soup to nuts definitive guide and reference on all of the important and practical aspects of JavaScript programming. It is not a cookbook of cute-but-useless cut-n-paste recipes [although there are plenty of USEFUL code examples]. It is not the quick-and-dirty example of how to slap the hottest AJAX library into your site to attempt to make it behave like a Windows app. The chapter on AJAX shows you how to use the XML HTTP object directly, wrapped up in some nice reusable routines, so you can WRITE YOUR OWN AJAX-based features [which I prefer over using someone else's complicated, obfuscated framework].
Great job, again, David! If you develop websites in any capacity, you need this book. It should be on every developer's shelf.


Click Here to see more reviews about: JavaScript: The Definitive Guide


This Fifth Edition is completely revised and expanded to cover JavaScript as it is used in today's Web 2.0 applications. This book is both an example-driven programmer's guide and a keep-on-your-desk reference, with new chapters that explain everything you need to know to get the most out of JavaScript, including:

Scripted HTTP and Ajax
XML processing
Client-side graphics using the canvas tag
Namespaces in JavaScript--essential when writing complex programs
Classes, closures, persistence, Flash, and JavaScript embedded in Java applications

Part I explains the core JavaScript language in detail. If you are new to JavaScript, it will teach you the language. If you are already a JavaScript programmer, Part I will sharpen your skills and deepen your understanding of the language.

Part II explains the scripting environment provided by web browsers, with a focus on DOM scripting with unobtrusive JavaScript. The broad and deep coverage of client-side JavaScript is illustrated with many sophisticated examples that demonstrate how to:

Generate a table of contents for an HTML document
Display DHTML animations
Automate form validation
Draw dynamic pie charts
Make HTML elements draggable
Define keyboard shortcuts for web applications
Create Ajax-enabled tool tips
Use XPath and XSLT on XML documents loaded with Ajax
And much more

Part III is a complete reference for core JavaScript. It documents every class, object, constructor, method, function, property, and constant defined by JavaScript 1.5 and ECMAScript Version 3.

Part IV is a reference for client-side JavaScript, covering legacy web browser APIs, the standard Level 2 DOM API, and emerging standards such as the XMLHttpRequest object and the canvas tag.

More than 300,000 JavaScript programmers around the world have made this their indispensable reference book for building JavaScript applications.

"A must-have reference for expert JavaScript programmers...well-organized and detailed." -- Brendan Eich, creator of JavaScript


Buy Now

Click here for more information about JavaScript: The Definitive Guide

Read More...

jQuery in Action Review

jQuery in Action
Average Reviews:

(More customer reviews)
jQuery is a Javascript framework that aims to let you think structurally and conceptually, rather than worrying about syntax and other details. In that largely succeeds, and so does this remarkable book.
Every technical book should be like this one; having written a few myself, I know that's a tall order. "jQuery in Action" is concise but clear, humorous but not silly, and answers all the questions it raises, quickly. The reader is never left wondering "But what about..." for more than a sentence or two. The authors clearly gave a lot of thought to pedagogy, because things are explained in a clear way which progresses naturally from chapter to chapter. Factor in the extremely readable style and the handsome diagrams, and it's easy to see why reading this book is a sheer joy.
For each major feature of jQuery, this book provides a "Laboratory page", a kind of interactive HTML playground where you can try the feature out using different options. The remarkable flexibility of these pages is a testament to both the power of jQuery and to the imagination and creativity of the authors.
Perhaps the most commendable feature of "jQuery in Action" is, however, its unflinching honesty. All too often authors are interested in selling you on an approach or a product, and they tend to gloss over the rough spots to win you over. These authors refuse to do that. They present their topic just as it is, describe its merits, and let the reader decide. You should, of course, decide to buy this book!

Click Here to see more reviews about: jQuery in Action


A good web development framework anticipates what you need to do and makes those tasks easier and more efficient; jQuery practically reads your mind. Developers of every stripe-hobbyists and professionals alike-fall in love with jQuery the minute they've reduced 20 lines of clunky JavaScript into three lines of elegant, readable code. This new, concise JavaScript library radically simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages.

jQuery in Action, like jQuery itself, is a concise tool designed to make you a more efficient and effective web developer. In a short 300 pages, this book introduces you to the jQuery programming model and guides you through the major features and techniques you'll need to be productive immediately.The book anchors each new concept in the tasks you'll tackle in day-to-day web development and offers unique lab pages where you immediately put your jQuery knowledge to work.

There are dozens of JavaScript libraries available now, with major companies like Google, Yahoo and AOL open-sourcing their in-house tools. This book shows you how jQuery stacks up against other libraries and helps you navigate interaction with other tools and frameworks.

jQuery in Action offers a rich investigation of the up-and-coming jQuery library for client-side JavaScript. This book covers all major features and capabilities in a manner focused on getting the reader up and running with jQuery from the very first sections. Web Developers reading this book will gain a deep understanding of how to use jQuery to simplify their pages and lives, as well as learn the philosophy behind writing jQuery-enhanced pages.


Buy Now

Click here for more information about jQuery in Action

Read More...