Skip to content
Scan a barcode
Scan
Paperback The JavaScript Anthology: 101 Essential Tips, Tricks & Hacks Book

ISBN: 0975240269

ISBN13: 9780975240267

The JavaScript Anthology: 101 Essential Tips, Tricks & Hacks

Using a cookbook approach, The JavaScript Anthology will show you how to apply JavaScript to solve over 101 common Web Development challenges. You'll discover how-to:

Optimize your code so that it runs fasterCreate Ajax applications with the XmlHttpRequest objectValidate web forms to improve usabilityTake control of your web pages with the DOMEnsure that your JavaScript code is accessibleCreate slick drop-down menu systems

Included in this book is extensive coverage of DHTML and Ajax, including how-to create and customize advanced effects such as draggable elements, dynamically sorting data in a Web Browser, advanced menu systems, retrieving data from a Web Server using XMLHttpRequest and more.

The JavaScript Anthology also includes extensive coverage of object oriented coding, efficient script design, accessibility, and cross-browser issues. Best of all, you'll get download access to all the code used in the book, so you can put the scripts to use instantly.

From the Publisher

"Take control with the ultimate JavaScript toolkit"

The JavaScript Anthology: 101 Essential Tips, Tricks & Hacks provides you with tried and tested real-world solutions to over 100 real-world scripting problems.

Among the 101 Tips, Tricks & Hacks you'll learn how-to:

Search and replace text using regular expressions.Navigate the DOM and create, delete, and move elements on the page.Validate email addresses on your web forms.Print inline error messages when validating forms.Minimize the problems associated with popup windows.Make a slideshow of images.Ensure your code works on different browsers.Make a style sheet switcher.Build an accessible drop-down menu system.Construct drag 'n' drop interfaces using AJAX.Use JavaScript and Flash together.Make your JavaScript accessible: an in-depth look at minimizing the accessibility problems associated with using JavaScript.Use the XMLHttpRequest object to build AJAX applications.Optimize your JavaScript code so that it runs faster.And much more!

Who Should Read This Book?

If you're using JavaScript on your projects right now, and you want to do things faster and better, this book is for you. The JavaScript Anthology will save you the frustration of hunting down code on the Web only to find that it isn't customizable, and doesn't represent best practice or work across different browsers.

The JavaScript Anthology: 101 Essential Tips, Tricks & Hacks contains thoroughly tested, cross-browser code that you can easily modify to suit your own needs.

The book is written in the usual SitePoint style: it's clear and fun to read, with plenty of example code that you can apply immediately to your own web sites. Plus, it's super-easy to navigate the book to find exactly what you want thanks to its cookbook approach and professionally-produced index. It's the perfect reference book.

There's no need to re-type any of the code in the book. As always, customers receive instant download access to all the files used in the book, so you can apply them immediately to your own projects.

Recommended

Format: Paperback

Condition: Good

$5.39
Save $34.56!
List Price $39.95
Almost Gone, Only 1 Left!

Customer Reviews

5 ratings

Just What I Needed

I purchased this book out of desperation after using a 1000 page Javascript Wrox book published in 2000 that was worse than useless. The author's blog posting here is very accurate: it is a modern javascript book that gives usable solutions and concepts that work well. I recommend this book to anyone who has at least some programming background and is sick of cut and pasting garbage code from other mickey mouse tutorial sites that break at the slightest change. It is also a great start for working with AJAX, which is what I needed it for. That said, the book is surprisingly a great read. I am reading this book cover to cover and also use it as an every day reference with dozens of tips. It is obvious the authors have worked extensively with web sites and write from experience. Thanks for a job well done!

The most useful JavaScript book on my shelf

I didn't really think I needed this book -- I have sever other JavaScript books, including the O'Reilly JavaScript Cookbook, and it seemed like this would just be a duplication. But I kept reading really positive reviews of this and other SitePoint books on sites that I trusted, so I decided to take a flier on it. I'm really glad I did. Unlike some of the O'Reilly books, which are dated at this point, this has really up-to-date, professional code that incorporates best practices. Depending on what kind of JavaScript code base you need to integrate with, you may be able to use this code as-is in many instances. Even if you need to modify it for your own uses, you will never find poorly-organized hackwork here. Also nice is the up-to-date topic selection. Classics like DOM, form validation, drop-down menus, and cookies are supplemented with topics about accessibility, XMLHttpRequest, in-page dialogs, and using class prototypes. When the authors tell you how to launch popups, they also tell you about all the pitfalls and problems. No cookbook is going to cover ever possible topic (personally, I would have liked to see JSON examples), but this one is about as complete as you could reasonably ask for. Really, the only downside about this book that I can see is that you need to have at least an intermediate understanding of JavaScript to understand what's going on. There isn't a lot of handholding, and you will likely want to own both a good tutorial and a solid reference on JavaScript and spend some time with them before you're ready for this book. But if you have a good working knowledge of JavaScript and are looking for practical, well-written examples of how to incorporate new techniques into your code, you won't find a better book than this one.

A 'must' for any serious Javascript programmer.

James Edwards & Cameron Adams' THE JAVASCRIPT ANTHOLOGY: 101 ESSENTIAL TIPS, TRICKS & HACKS compiles a range of solutions to the most common JavaScript questions and problems, offering up tested solutions, standards-compliant tips, and keys to ensuring JavaScript code is clean, accessible and logical. From the basics of making a drop-down or fly-out menu to making attribute tooltips display on focus, THE JAVASCRIPT ANTHOLOGY is a 'must' for any serious Javascript programmer. Diane C. Donovan California Bookwatch

VERY VERY HIGHLY RECOMMENDED!!

Are you involved or interested in building web sites or web applications? If you are, then this book is for you! Authors Cameron Adams and James Edwards, have done an outstanding job of writing a practical book for webmasters who are looking for a copy-and-paste solutions to everyday needs. Adams and James Edwards, begin by providing an overview of JavaScript's capabilities and limitations, and introduce some core best practices that they'll be using through the rest of the book. Then, the authors look at techniques for using and processing numbers in JavaScript. They continue by looking at ways of manipulating strings to find information, storing data, and preparing test for output; as well as, including a thorough introduction to regular expressions in JavaScript. Next, the authors introduce you to one of the most powerful data-storage structures in JavaScript: the array. Then, the authors introduce and explore DOM, and look at how to create and read the data from elements, attributes, and text. Then, they look at reading and writing data from different kinds of form widget, address the tasks of validating and processing form data, and discuss techniques for improving the usability of form-based interfaces. They also take a cautious look at manipulating windows and scripting across frames. Next, the authors introduce cookies and show you how to use them effectively. Then, they show you how to get the date and time in JavaScript, how to compare and process dates and times, and how to output the final data in different formats and conventions. They continue by exploring the basic techniques involved in scripting for images. Next, the authors outline techniques for dealing with different browsers and rendering modes. Then, they look at how to read and write the styles from a single element or group of elements, how to read and write CSS rules to an existing or created style sheet, and how to build a style sheet switcher. The authors also cover event-handling in all its flavors, detecting the position and size of an object, tracking the mouse, and making elements appear and disappear. Next, they look at more complex forms of scripting that use motion and animation. Then, the authors include solutions for the problem of menus overlapping select elements in Windows IE 5 and IE 6. They also provide an overview of the current state of play regarding JavaScript and accessibility. The authors continue by showing you how to detect whether a user has the Flash plugin, and mastering communications between JavaScript and Flash. Next, they delve into the exciting area of online application design, including data retrieved using XMLHttpRequest, as well as the older technique of using iframes. Then, the authors introduce OOP, exploring its core concepts and benefits. Finally, the authors look at everyday techniques for writing faster, more efficient code that's shorter and uses less memory. In this most excellent book, you'll find scripts and discussions that

Everything you need to know about JavaScript

You would think that by the title of this book, you would only use maybe a chapter or two to learn something in particular; or that this book is a just a copy and past DHTML book, but you would be so wrong. Even a beginner in JavaScript would be able to follow the smart and easy to follow examples in this book. The author shows the real ways to debug and figure out your syntax error right at the beginning. After the basics of the first chapter, it slowly covers each topic (Numbers, Strings, Arrays, DOM, Forms, Cookies, etc.) slowly and with such care that it is impossible to get lost or not understand what the author is saying. Each chapter is covered in 2 ways: A regular progression of understanding each topic and intermingling "how-to" sections (solutions) to get the readers attention. It is also a great way for readers who already know JavaScript fairly well to find a particular topic they are looking for. I hate 800+ page books (i.e. Bible books) that can take you so long to find a particular topic or just ramble on and never really teach you anything. This book gives just enough detail with over-explaing, but don't think the book is too brief! I can easily breeze through this book and know exactly how to find the answer in minutes and understand what the author is saying. I've been using JavaScript for a couple years now as well as teaching part-time web design and I've found many chapters very useful already, specifically: Chapter 5 (Navigating the DOM), Chapter 6 (Forms and validation), Chapter 10 (Working with Images), Chapter 13 (Basic Dynamic HTML), and Chapter 15 (DHTML Menus and Navigation). I could use this book for an entire course (15 weeks) and have more than enough material. I've never seen a book that covers how to create a complete professional navigation system (Chapter 15) before. Most people just copy an paste code from sites like (DynamicDrive.com) for fancy DHTML effects, but I always wanted to understand how it was done. All the other JavaScript books I have purchased either never focused on it or was too old to cover the latest browser standards (IE 6, Firefox 1.x, Opera 8). This book has it all. If you really want to understand JavaScript, get this book. It's worth every penny...
Copyright © 2025 Thriftbooks.com Terms of Use | Privacy Policy | Do Not Sell/Share My Personal Information | Cookie Policy | Cookie Preferences | Accessibility Statement
ThriftBooks ® and the ThriftBooks ® logo are registered trademarks of Thrift Books Global, LLC
GoDaddy Verified and Secured