Product DescriptionUsing 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 faster
Create Ajax applications with the XmlHttpRequest object
Validate web forms to improve usability
Take control of your web pages with the DOM
Ensure that your JavaScript code is accessible
Create 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.
Customer Reviews
Average Rating:
Rating: - Good if you need one of the tricks.
I should preface my review by saying that I generally love the sitepoint books. Simply Javascript (also co-authored by Adams) is hands down the best programming book I've ever read. That said, this book isn't really so much a "book" as it is a "handy reference." If you skim this book and find something you need, then you may be able to justify the cost. As a cover-to-cover read, it's definitely lacking and will leave you wanting. Taken as individual chapters, the writing is excellent and the ... Read More
Rating: - 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 ... Read More
Rating: - Javascript 4 U
This is an excellent next-step up from an introduction to Javascript and looks at its use in real world situations. You will need to be reasonably fluent in the language to get the best out of it.
The book presents a topic as a question and then presents code to action that query as a solution, then goes through that code in a discussion section. This is where I have a relatively minor criticism of this book; the necessities of discussing the code do not always mesh well with the question ... Read More
Rating: - 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 ... Read More
Rating: - Good and elegant book
It is a good book with useful tips and tricks.
the authors use an elegant way to catch the target.