August 11, 2009

When we redesigned hotelicopter, I had to spend a lot of time cutting up images for a bunch of buttons and boxes. I was using the now-standard Sliding Doors technique, so that we could have flexible boxes. Today, I realized that I could combine this technique with another A List Apart favorite, image sprites, so that you can have sliding doors using only one image. (more…)

February 10, 2009

I’ve been having trouble with a Scriptaculous sortable object that wasn’t catching the onUpdate function I’d assigned. In this case, I was using an UL for the parent with LIs inside. After digging into the code, I discovered that there are several criteria that must be for the actual items that are going to be sortable, or else the event won’t fire. These are: (more…)

February 7, 2008

In Javascript, the native event handlers have the infuriating problem of not allowing the user to pass in additional parameters. Normally, when you want to handle an onclick or the like, you can only reference this (meaning the event itself). So everything you want to handle, you have to create a completely isolated custom function for. Not at all efficient. The Prototype library provides a solution. (more…)

Next Page »