Web forms and 'an' or 'a'

Posted on

I'm a stickler for the little things. What's wrong with this drop down box? If you don't notice, then this article probably isn't for you. However the more pedantic audience members will note that "I am a Installer" is terrible English. This should of course be "I am an Installer" A solution Given the following (greatly simplified) HTML; <label for="role">I am a...</label> <select name="role" id="input_role">...</select> Simply add a little javascript along the lines of the following; $('#input_role').change(function() { if ("aeiou".indexOf($(this).val().char…

Read more »


International number formatting on the web with JavaScript

In the UK numbers are typically shown as follows; 07700 900 123 020 7946 0123 This is known as the "local" or "UK National" format When dialled from abroad, the leading 0 is replaced with +44 so the 07700 number in the above example would become +44 7700 900 123 Unfortunately, there isn't really an acceptable way of writing this for both audiences. Numbers for an international audience Most commonly (and the one form I generally accept) is placing the 0 within a bracket e.g. +44 (0)20 7946 0123 – however even this is met with some objections as brackets were traditionally used for the S…

Read more »


Transavia, KLM and a couple of bags...

Some people will know I've had issues with KLM in the past specifically when their policy was to allow aircraft to depart with exit rows unoccupied; a situation EASA believe represents "an inadequate level of safety". Despite this, they're one of only three airlines that offer service from my local airport and then only one with a sensible (so I thought) connection for my upcoming trip to Portugal, so I find myself flying with them again and the issues start before I get to the airport! Baggage allowance Here is the picture used to illustrate baggage allowance on my upcoming flight; At a glan…

Read more »


When is withheld, not withheld?

I love Three's new WiFi Calling feature (well, it's an Apple feature, but Three finally decided to support it!) – ultimately it lets me use my phone (most of the time) at home for calls and SMS (think 2FA!) where there is no signal on Three. However, I recently discovered a big issue. With "Show My Caller ID" turned off calls I make are not withheld. That is the called party can see my, supposedly private, Caller ID. The Law Ofcom wrote to all UK CPs a number of years ago reminding them of their responsibilities, part of this eMail included; CPs must respect the privacy rights of consumers…

Read more »


Road Rants - Single Track Roads

Told you I could do a series of these... I now live in quite a rural area and we have a lot of roads that seem mildly unusual to some, and seem to strike the fear of god in others! Whilst they seem to have disappeared from most of the UK, there are still over 2,500 miles of them up here! Single Track Roads (with passing places) As the name suggests these are roads with one lane; not one lane in each direction - just one single lane, with the occasional passing place where the road is wide enough to allow to vehicles to pass. Driving these roads requires more concentration and awareness of wh…

Read more »