07
Dec 08

Drag and drop reordering of database fields (sortables) with jQuery

This tutorial explains how to display a list of items from a database that can be reordered in real time by dragging and dropping, using the jQuery library. Moreover, no page reload is required on every reorder. If you want a bigger introduction to why you may want to do this I suggest reading my tutorial on how to achieve the same functionality using scriptaculous.

Previously I have explained how to achieve this in Scriptaculous and Mootools.

Continue reading →

  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • StumbleUpon
  • LinkedIn
  • Reddit
  • Netvibes
  • email

12
Oct 08

jQuery table effects plugin – v1.0

See the demo here.

My first outing into producing a jQuery plugin is the limited, but useful “jQuery table effects”.

The current version defines the following features:

  1. Alternating row colours for readability (striping).
  2. onmouseover and onmouseout events for manipulating the background colour of the row.

Continue reading →

  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • StumbleUpon
  • LinkedIn
  • Reddit
  • Netvibes
  • email

01
Aug 08

Letters about a letter.

This is beautiful, funny and worrying at the same time. Giles Coren’s letter to the Times sub-editors about the removal of the indefinite article “a” from a sentence and the subsequent response.

Be warned – contains copious profanities, bad grammar and a glimpse into the tense realtionship between writers and sub-editors.

  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • StumbleUpon
  • LinkedIn
  • Reddit
  • Netvibes
  • email

24
Jul 08

The Outsiders (part one).

Southern Spain. An internet kiosk in the lobby of a residential block. A portly woman with two young children pulls up a chair and gazes at the screen.

“How come this is not in English?”

  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • StumbleUpon
  • LinkedIn
  • Reddit
  • Netvibes
  • email

09
Mar 08

Autocompletion with Scriptaculous and Ajax.

Demo here | Download sample files

This tutorial supercedes my previous turtorial on autocompletion by adding further tips and tricks to make your autocompletion a much better experience for your site users The tutorial is structured in the following way:

  1. Introduction: What is autocompletion and why use it?
  2. How it works.
  3. Getting scriptaculous and building the form.
  4. Building the autocomplete server.
  5. Passing back an id to our form.

Continue reading →

  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • StumbleUpon
  • LinkedIn
  • Reddit
  • Netvibes
  • email

04
Jan 08

My Top Albums of 2007

  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • StumbleUpon
  • LinkedIn
  • Reddit
  • Netvibes
  • email

10
Oct 07

Drag and drop reordering of database fields (sortables) with Mootools

This recipe follows on from the work done in my Scriptaculous Drag and Drop recipe, only using Mootools an alternative Javascript library that I have been using lately. I am not endorsing either library and I suggest you read both tutorials and see which one feels most comfortable for you, or choose depending on the library you currently use.

Continue reading →

  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • StumbleUpon
  • LinkedIn
  • Reddit
  • Netvibes
  • email

11
Aug 06

Drag and Drop Reordering of Database fields with Scriptaculous.

Rather than go into immense detail about why you would want to do this, let me present two real world examples of projects I have recently completed that have benefited from this kind of functionality:

  1. An ecommerce site where the site owner wanted to arrange categories and products in a more logical order (e.g popularity) as opposed to alphabetically.
  2. A real estate site where the site owner required the ability to upload multiple images of a property and then reorder them.

Continue reading →

  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • StumbleUpon
  • LinkedIn
  • Reddit
  • Netvibes
  • email

14
Apr 06

Ajax autocompletion for the impatient

Ajax autocompletion for the impatient has moved here.

  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • StumbleUpon
  • LinkedIn
  • Reddit
  • Netvibes
  • email

09
Mar 06

Alternating table row colours in PHP.

Recently I have been tinkering with Ruby on Rails and I came across a rather nice method of alternating row colours using only two lines of code and a couple of CSS rules. I have been using this method in my PHP ever since and never looked back. This is a neat trick to alternate row colors on a table using PHP.

Continue reading →

  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • StumbleUpon
  • LinkedIn
  • Reddit
  • Netvibes
  • email