A new toy

As part of the site redesign I decided to try my hand at one of the currently hot web technologies, Ajax, because if I don’t use this effort at least in part to keep some tech chops then I’m wasting it. So if you bop over to the book and movie review pages you can see the results: click on any title and the review will open in place where the old version simply loaded up an archive page containing the entry in which the review originally appeared.

No big thing, I’m the first to admit, but getting this to work was fun for me. I’ve been reading about this technique for months and have been championing its use at work (successfully too). I did a bit of practical research and wound up using the CPAINT library to manage the client-side JavaScript and the BlogMarks Blogger PHP client to retrieve the review post on demand. Love that free working code!

I am still looking for the way to do one last bit. Not everyone has JavaScript working in their browser and so other Ajax developers have come up with the requirement to degrade gracefully in that case. In other words, show those readers the same old URL going to the archive page. The popular choice for this is the Behaviour library from Ben Nolan but CPAINT seems to be incompatible so I need to do more research.

On the bigger picture, I want to say thanks to Jennifer Muller, Monica Laurence, and Garret Vreeland for suggestions on colors, fonts and layout. All fault is mine but trust this place looks much better for their input. If you have any suggestions for further improvements, drop me a line. I love to hear from readers.

A few minutes later: Thanks to Dan for his easy to read article Graceful Degradation, it was the clue I needed and now the review pages should work with or without JavaScript.