- Paperback: 528 pages
- Publisher: New Riders; 01 edition (26 Sept. 2006)
- Language: English
- ISBN-10: 0321423305
- ISBN-13: 978-0321423306
- Product Dimensions: 18.8 x 2.3 x 23.1 cm
- Average Customer Review: 3.7 out of 5 stars See all reviews (3 customer reviews)
- Amazon Bestsellers Rank: 1,007,717 in Books (See Top 100 in Books)
|New from||Used from|
- Choose from over 13,000 locations across the UK
- Prime members get unlimited deliveries at no additional cost
- Find your preferred location and add it to your address book
- Dispatch to this address when you check out
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
In essence, it reminds me of how I learned to work on the web in the first place: careful examination of other people’s work. At its best, this book is a clearly annotated view source of Koch’s projects. It’s a comprehensive exploration of Koch’s thoughts about the problems he’s run into (problems that you’ll run into, too), how he approached them, and ultimately how he’s solved them." -- Mike West, Managing Editor, Digital Web Magazine
From the Back Cover
The book's example scripts include one that sorts a data table according to the user's search queries, a form validation script, a script that shows form fields only when the user needs them, a drop-down menu, and a data retrieval script that uses simple Ajax and shows the data in an animation.
Top Customer Reviews
I tend to like to try out some examples and get a feel for the basic of a language first, but this book doesn't take that approach - instead, it explains a lot of theory, and then gets you doing things towards the end.
Furthermore, the author makes reference to a set of example scripts which he wrote for various projects, but never actually gives the full scripts - instead, he looks at bits of each in every chapter. I found this very very confusing. One of the example scripts was to do dropdown menus, which was what I wanted to do, but the script was so split up over different chapters that I was unable to put it back together to try it out.
He also gives a number of deliberately wrong examples, to demonstrate how not to do things, but again I was confused by these, especially as some of them came before the corresponding correct example - I want things I can type in and play with, and then maybe some wrong examples at the end - but ultimately, I want to know how to do it, not how to not do it!
I think that if you read this book cover to cover, you'd probably come away as a bit of an expert, but if, like me, you like to dip in and out of computer books and try examples and get a feel for the language early on, then this is not the book for you.
Most Helpful Customer Reviews on Amazon.com (beta)
There is nothing about objects and all other OOP stuff, so I think this book is very well suited for beginners. But specialist will also find a lot of interesting things.
One more advantage, the presentation and layout are really more pleasant than what is generally found in this category's books.
Throughout the ten chapters and 499 pages of this book, there is very little that isn't covered on the topic. Let's take a look at the organization and flow of the book:
Lastly we are introduced to the eight example scripts that we will encounter: Textarea MaxLength, Usable Forms, Form Validation, Dropdown Menu, Edit Style Sheet, Sandwich Picker, XMLHTTP Speed Meter, and Site Survey.
This chapter provides a little more context and history into the different browser families. We look not only at browsers but other devices such as mobile phones and screen readers. We look at each of these and are then shown some of the incompatibilities that they suffer. We address the problems and look to build solutions to patch the holes. Next we look at solving problems by using two different techniques: object detection and browser detection. Object detection works by checking if the methods you are using are supported before you use them. Browser detection tries to detect the current User Agent and then build from there. Browser detection has many flaws associated with it. One specifically is browser spoofing where you can send a different User Agent string to the server, lying to the application about the available technology. There are correct uses, but this should mostly be avoided.
Planning is important for all projects. Here we are introduced to preparing our application for enhancements. This involves having the proper placements of hooks. Hooks are found by using an ID, class, custom attributes (not a widely accepted solution), and name/value pairs.
Once we have our hooks in place, we have to get access to them to make our modifications. Having access is only part of the process. We also have to learn how to generate content when necessary and understanding the relationships inside of the DOM. We get a brief primer on setting up our script tag and how we can utilize multiple scripts if necessary.
Our hooks are in place, and we know where we want to apply our effects. How and when should they fire? We stop to take a look at the initialization of scripts and the load event. This method has its pitfalls, which are discussed and alternate solutions are addressed. We take a look back to the example scripts for some more insight and real-world use cases.
This section looks at the Browser Object Model and the window object. We take a look at the global window object and its impact on creating new pages and cross communication between windows. We then look at navigation within the window and the location and history. We learn how to manipulate the geometry of the window, and how to retrieve information about the current window dimensions.
The chapter rounds off with discussion of some miscellaneous functions such as alert, confirm, prompt and timeouts and intervals. We take a closer look at some of the available methods for the document object. Finally, we take a look at working with cookies and utilizing/managing them within our application.
This is probably one of the most important sections of this book. This section gives a thorough look at all of the available events. The chapter first starts by looking at some compatibilities and how to resolve them case by case. We take an in-depth look at all of the available events at our disposal and how they work. We look at event registration and the best way to handle it. The rest of this chapter discusses event bubbling and capturing and the browser support related to each, the event object and its properties available to us, targeting your elements, and then implementing some of our new-found knowledge in the example scripts. Sometimes grasping events and event registration can be tough, but this chapter makes it easy through illustration and the example scripts.
However, it is never that easy. Traversing the DOM can sometimes be painful, especially when you see some of the differences between browsers. We take a look at how to find our nodes, how we can retrieve information about those nodes, and how we can change our document tree through appending, inserting, removing, and replacing. We are also introduced to creating elements and creating text nodes, and then how we can achieve some of the above tasks.
The last parts of this chapter look at some examples of keeping the clean separation, but applying some visual enhancements. We work through some examples of toggling display of elements, animating elements, and changing the dimensions and position of elements.
This chapter is all about AJAX. We look at the XMLHttpRequest object and how to make it work cross browser through some conditional checks. Once we have sent the request, we need to know how to handle the response. We look at the different statuses and response codes that we will be dealing with and how to set callback functions to handle the response. We look at the available return formats such as XML, HTML, JSON, and CSV. The final part to this chapter looks at the impact that AJAX has on accessibility.
The only drawback to ppk is the use of the author's real-world scripts. He suggests you check them out beforehand on his excellent and timely web site, [....] The scripts are good but never printed out completely in the book. That said, there is enough information in this book that you'll reference it over and over.
Look for similar items by category
- Books > Computing & Internet > Digital Lifestyle > Online Shopping > Amazon
- Books > Computing & Internet > Programming > Languages
- Books > Computing & Internet > Programming > Languages & Tools
- Books > Computing & Internet > Software & Graphics
- Books > Computing & Internet > Web Development > Web Scripting & Programming