Javascript Event Handling With prototype’s bind()

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 […]

Read More »

Scriptaculous: Table issues and Forms

So I’ve been playing with Scriptaculous a bit, and doing some debugging. I have a table, in which certain rows would should appear when a link is clicked. I’ve got it set with a display:none by default and I’m using Effect.SlideDown to have it appear. Now due to how display and opacity on tables, trs, […]

Read More »

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; window.close(); That’s all […]

Read More »

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.

Read More »