Posts Categorized: Web Development

Scriptaculous Sortable Create onUpdate Event Not Firing

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…)

Unfuddle Love

I’m really starting to fall for Unfuddle. For those who don’t know, it’s another Basecamp clone for managing projects. I just discovered that if you’re using the source control (Subversion-based) that they provide, they parse the svn messages for key phrases like “Resolves Ticket #1001”, and update the associated ticket in their system to match. Which is a gotcha if you’re not aware of it, but awesome once you are. (more…)

Scriptaculous: Simultaneous Animation Effects

I remember my first programming class. I was seven. For the life of me, I could not make that damn turtle draw a star while playing music at the same time to save my life (or my grade). This is generally just as painful and traumatic to do in Javascript as it is in Logo.

The thing that makes Scriptaculous totally amazing is native simultaneous effects go right here. Meaning, you can do a shape tween and an opacity change all at the same time, no jerkiness or anything. You can just pass in an array of effects to render, and it does them all at the same time.

Quickie: IE and window.close()

IE tends to do some funny things with its security settings. In particular, if your settings are high enough, window.close() will throw a warning or silently stop working entirely. This is definitely not our preferred behavior, and luckily, there’s an easy hack provided by FatTonny on the SitePoint Forums.

window.opener = window;

That’s all there is too it! Happy coding!

XHTML: The Myth and You

A couple of years back, XHTML became the big new buzzword for webdevelopers and everyone (myself included) jumped on the bandwagon, converting all of their pages from HTML 4.01. However, what we didn’t realize at the time was that we were being lied to. And as a result, most everyone is still using it incorrectly.