Web Programming

This section is all about web development, helping programmers to develop the best sites possible.

The key elements of successful web development:

Performance - Interface - Maintainability

Autocomplete in jQuery

09 Jul 2013

This is my solution for an as-you-type auto-suggest behaviour in an HTML form input, using jQuery. Now, jQuery plugins for doing text input ...

Mashape is an API marketplace!

29 Jun 2013

Is this the API utopia for web developers and data services? Mashape claims to be the one-stop-shop for developers to access thousands of ...

Automated Chromakey in PHP

27 Jun 2013

This is an experiment in removing a photograph's background automatically, as long as the background is reasonably uniform. To create such ...

Efficient, minimal MySQL backup

22 Apr 2013

When someone asks you about what you do to backup your website's database, you'll probably have one of these responses: "I don't think ...

Live Script Run Times for Swinny.net

19 Apr 2013

Here is a summary of the time it takes the Swinny.net server to run a PHP script to deliver a web page, over the last few weeks. The site was ...

Tracking online campaigns with UTM variables

21 Oct 2012

In homage to its previous existence as Urchin Stats, Google Analytics supports URL tracking options using the prefix utm_, which stands for ...

Fixed position elements on mobile browsers

12 Mar 2012

Fixed positioning of HTML elements on a webpage doesn't always work on mobile devices. Here's a piece of meta code that is supposed to 'fix ...

Auto-save browser forms with localstorage

11 Mar 2012

We all know how annoying it is to be half-way through filling in a web form, only to accidentally close the window or hit the back button. ...

UK PHP Conference 2012: a question of scale

09 Mar 2012

I was fortunate enough to attend the PHP UK Conference 2012, on Friday 24 February. The theme of the conference was about how well PHP scales ...

mod_pagespeed breaks things

06 Mar 2012

Google is respected in the web development community for writing simple, usable code and then making it available for re-use by everyone. ...

Cloudflare for Better Web Performance?

13 Dec 2011

There is a company that offers a firewall service fir your web hosting, and it does this using the so-called 'cloud'. Furthermore, its starter ...

Capturing selected text in Javascript

29 Nov 2011

Here's how to immediately capture the text on your web page that a visitor has highlighted with their mouse. Select some text on this page ...

Make Your Headlines Shine

06 Oct 2011

Here we learn how to create a text shadow affect, using only a bit of CSS. div.box{ background-color:#000000; } h4.glow { padding ...

Google Web Fonts

12 Sep 2011

Google Web Fonts lets you browse all the fonts available via the Google Web Fonts API. All fonts in the directory are available for use on ...

Facebook Commenting for Websites

06 Mar 2011

Facebook has opened up its commenting system to all websites. What this means is that there is no need for a website owner to develop, run and ...