The Web Developer's Blog has been discontinued. I am now maintaining a new blog that is related to my company, Blue Piccadilly. The most popular articles from this blog (by monthly page views) have already been republished on the new blog, and indeed those original pages on this blog are being redirected to their new location. I'll probably keep these pages up here for a while. At least until the domain expires.

jQuery

Nov14

jQuery Fundamentals - A completely free book for learning jQuery

14-Nov-2010
Filed under: JavaScript, jQuery

If you've been trying to learn (or learn more about) jQuery, and you don't know about Rebecca Murphey's excellent Creative Commons licenced book jQuery Fundamentals, you're missing out.

Feb20

Specify an alternative jQuery library for a particular page on your Drupal site

20-Feb-2009
Filed under: jQuery, Drupal 5.x

Drupal 5.x comes bundled with a fairly outdated version of the jQuery library. Simply downloading the latest version of jQuery and replacing Drupal's jQuery library is not recommended, as this causes compatibility problems with Drupal's own use of jQuery.

Nevertheless, there are times when you might have a requirement to use the latest version of jQuery. For instance, you might want to make use of a jQuery plugin that's not supported by the default version.

Dec06

Default text field value that disappears on focus

06-Dec-2007
Filed under: JavaScript, jQuery

See the search form top right? Click the search box. See how the default text disappears and then reappears when you click away from the search box? Here's how you do it.

The script below searches the page that it's inserted on for all form input fields that have a class of default-value applied. Each form input field must have a unique ID.

Oct04

A nice collection of jQuery essentials

04-Oct-2007
Filed under: JavaScript, jQuery

Here's a site I came across that lists a nice collection of plugins for use with jQuery.

http://www.phpfour.com/blog/2007/06/30/jquery-essentials/