The small jQuery snippet below will make those plain old labels that follow checkboxes and radio buttons active. That is, they will activate/deactivate the checkboxes…
MySQL full text search w/ relevance percentage
We're using an FAQ table below, to demonstrate how to return a result set that includes the keyword relevance as a percentage of the maximum…
JavaScript Date object – 0 offset Month
I find the Javascript Date constructor to be a little non-intuitive, primarily because the Month is 0 offset, but the day is not. The script…
Make those SQL queries chunky
I'm by no means saying that my tests below are evidence enough to support the case for "chunky" SQL queries. By chunky, I mean queries…
Labelling form fields without using labels – Method II
Here's a handy method I came up with to "move" labels inside form fields, to save real estate. It also degrades gracefully if the user…
CSV export – leading zeros
As far as I know, there isn't a "real" solution to this problem. Both Excel, Works & OpenOffice treat anything that can be converted to…
CSS borders taller than text
This morning I finally cracked a CSS mystery that has stumped me since I began using CSS! The solution, so obvious. A little background: Inline…
Encoding videos programatically
A free library called FFMpeg makes this possible for us. If you wish to encode to MP4, you'll need the help of the following additional…
Summarizing large amounts of text
There are a few tricks that can be used to summarize a body of text into a paragraph. One of the simplest methods is to…
Counter styling with CSS
Key ingredients Background image, like the above Fixed-width font, like Courier CSS letter-spacing property Ability to zero-pad numbers with your server-side language The HTML <div…