Archive for the ‘General’ Category

Filtered keystrokes with JavaScript

This small set of scripts should give you a starting point for filtering the valid input to certain form fields to ensure that you shouldn’t end up with input that you don’t want*.
Basically you’d have the following javascript functions defined:

function isNumber( evt ) {
valid = true;
if( evt.which || ( evt.which != 0 && evt.charCode != 0 [...]

Duckworthing

Well it’s finally happened, the pair of glasses I’ve had for going on four or five years now has finally given up.
This morning when I arrived at work and sat at my desk I did what I usually do. I took my glasses off and gave them a clean on my shirt. Usually [...]

You absolute beauty

The local football team in Dumfries, Queen of the South, has made club history by beating Aberdeen 4-3 in the semi-final of the Scottish Cup at Hampden today.
They’ll be in the final of the Scottish Cup on the 24th May playing either St Johnstone, Rangers or Partick Thistle.

Most Popular Stories Now

Isn’t there something quite ironic about this?

Switching to Dreamhost

I’m currently in the midst of switching my site hosting over to Dreamhost and you may see some disruption in this or some other sites I host. It’ll probably last about a week due to myself getting bored transferring all the files/databases and playing World of Warcraft instead.
Just a note to say, if you [...]