jQuery

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/