Archive for the 'ECMAScript' Category

Viewing the DOM Source with Firefox

When working with the DOM it can be frustrating trying to visualize the difference in modified page structure the browser ultimately sees and the unmodified ‘View Source’ results. Enter Firefox’ ‘View DOM Source’ to save hours you of debugging.

Unobtrusive JavaScript Gems

A quick list of mostly unobtrusive ECMAScripts that have impressed me as I’ve been learning.

sorttable: Unobtrusive DHTML table sorting

sorttable from kryogenix.org is simply not to be missed.

Hopefully I’ve made that clear, now on to the installation instructions.

Include the JavaScript sorttable.js library Give your table a class of “sortable” Make sure your table has an id attribue Sprinkle a little CSS to taste

Holy crap and fan-fucking-tastic. Many thanks to Stuart Langridge for this wonderful piece of code.

sorttable: […]