Introduction of the book

As I promised before, I've now published the larger part of the Introduction of my book "ppk on JavaScript". Apart from some general notes, it introduces the eight example scripts that I use throughout the book. As you'll see, all these eight example scripts were written for real-world clients in order to earn real-world money.

The example scripts themselves are also online, and you can study them. The Introduction links to all of them. Since I refer to these example scripts throughout the book, I expect my readers to have a general idea of what they're doing and why.

I hope this pre-publication gives a better insight in the kind of book I've written.

Unfortunately the publication date has moved forward to 13 September (US). The rest of the world will have to wait about a month longer.

Looking at the textarea example script I have to say I'm rather disappointed. There are a number of big issues with the code, for example with regards to unobtrusiveness (DOM 0 events?), semantics and DOM interaction (there are no guarantees as to the value of the maxLength attribute, for instance).

Also, I think I saw a similar comment from Lon here, but it's gone now?

Tino: yes I see what you mean. I was more musing on the likelihood of multiple class names rather than similar class names. You're right in splitting className on whitespace and checking the array. But that's an added complexity that would only be required if the naming convention warranted it, I guess.