Monthly Archives: January 2007

undefined is not a reserved word

With the new release of Prototype (1.5.0) comes a new website for the Prototype JavaScript Library. The home-page of the new website features a snippet of JavaScript: cells: function(row) { if(row == undefined) return… return $(row).getElementsBySelector(… } Let’s get

Posted in JavaScript

The importance of being !important

There are plenty of good articles describing how CSS specificity is calculated for normal rule-sets, but the !important modifier is often ignored or overlooked. However, with a little manipulation, !important can simply be treated as one more factor in the

Posted in CSS

Numbers in form-fields

JavaScript is often used for client-side form validation to save unnecessary round-trips to the server. Unfortunately, lots of client-side validation relies on lenient JavaScript methods such as parseInt, allowing numbers to be input in ways totally unacceptable to your server-side

Posted in JavaScript