Book cover

My editor, Simon St. Laurent, sent me a copy of my new book cover. The tagline is currently being changed, but when the art department is finished, I’ll post a copy.

It’s a companion book to JavaScript: The Definitive Guide, which features a rhino on it’s cover. So what could be more appropriate for a Learning JavaScript book than a baby rhino? It’s adorable.

The book tagline works, too. In fact, it’s forming the basis for the Learning JavaScript site design. Oh, how I wish I had graphic skills; I don’t, so I’ll have to muddle along. Regardless, it’s going to be a fun site.

I am so pleased to be back working with, and writing about, scripting. I like lightweight technologies. Always have; always will.


Surest way to lose a customer

I am beta testing Firefox 2 on one of my machines, and will be writing about the new JavaScript 1.7 in a post over at ScriptTeaser. One of the advantages to Firefox 2 is the spellchecker, which works with all text windows. It really is the way to go, rather than have to enable the functionality on every server.

Most of my Firefox extensions don’t work with 2.0b, but one that does is the NoScript, which allows you to ‘whitelist’ a site for JavaScript use. The purpose is to protect yourself if you end up at a site that has a JS exploit, but still allow JavaScript usage for trusted sites. Unfortunately, if a whitelisted site also has an opening for a cross-site scripting hack, exploitive JavaScript can be ‘injected’ into the page.

One can always turn JS off, but that just cuts you off from the useful to frivolous use of scripting that is pretty ubiquitous now. Still, it’s an option.

I like to use NoScript, as I like to see how sites look when their JavaScript is turned off. After all, sites need to make sure they work in a non-script environment. Home pages such, shown below, are unacceptable–the mark of sloppy developers far too hung up on technology. Note to the company: Expedia’s worked fine without JavaScript.