Archive for January 2008

Shadowbox.js Media Viewer 1.0 beta

Update: Version 1.0 is now available.

A few weeks ago, I was looking for a Lightbox-like script that would allow me to display more than just pictures. In addition to static images, my client required the ability to display various types of movies including QuickTime and SWF. The only script that fit the bill was Lightwindow—a nice piece of work to be sure—but it required the Prototype + Scriptaculous combo and I was already using YUI.

Besides, I thought, it would be really great to have a full-featured media viewing application that was library agnostic. Then, if I need to use a different framework for some particular reason, I can easily switch.

Continued »

Type-safe arrays using PHP’s SPL

For a recent project of mine, I needed to create a type-safe collection of objects in PHP. However, normal PHP arrays don’t support this kind of behavior. I could create a class to do the job, but I’ll have to do a little work to make it function like a real array.

Continued »