Custom Styles for Select Inputs

Posted by on Mar 16, 2013 in Code Chat, JavaScript | No Comments
Custom Styles for Select Inputs

It’s long been a problem for developers that the Select (or dropdown) input doesn’t allow you many options for customising their look and feel. You shouldn’t be trying to style selects! When you search for help on this matter, you often come across people arguing that select inputs get their style from whatever browser you […]

Twitter Changes Its Terms

Posted by on Dec 28, 2012 in Code Chat | No Comments
Twitter Changes Its Terms

In March 2011 Twitter announced some upcoming changes to its Terms of Use which would affect developers. This is really an understatement as what they’ve actually done is fundamentally redefined how they would like their service to be used and what developers ought to be using it for. What’s new? The most important changes can […]

Preventing Contact Form Spam

Posted by on Sep 9, 2012 in Code Chat | No Comments

This is a problem which comes up time and time again. Every time you add a contact form to a website, you open yourself up to spam attacks. Solving this problem involves striking the right balance between making life easy for the person filling in the form, and the person receiving the spam at the […]

Target _blank is out the window

Posted by on Aug 15, 2012 in Code Chat, JavaScript | No Comments

Clients will often ask me to target external site links to open in a new window. Of course the correct answer is “No, it’s not up to a site to determine how a link should work, the user can decide that when browsing.” Not only is it bad practice but the target=”_blank” tag has been […]

YouTube Data Class

Posted by on Mar 15, 2011 in Code Chat, PHP | No Comments
YouTube Data Class

This is a class I’ve used several times and it demonstrates some of the useful data endpoints offered by YouTube. Often I will have to ask users or a web service for YouTube videos, and these may come in the form of share URLs, embed code or video URLs. This class allows you to extract […]

Captionator using JQuery

Posted by on Feb 27, 2011 in Code Chat | No Comments

A nice effect is to have the caption for a text field within the field instead of having a separate label. However it can be frustrating for a user if they have to delete the text before they can type into it. This JavaScript class looks for texfields with a class of captionate and adds […]

CSS Triangles

Posted by on Feb 20, 2011 in Code Chat | No Comments
CSS Triangles

Creating triangles using css alone

Thumbnails for sharing with Facebook

Posted by on Nov 9, 2010 in Code Chat | No Comments
Thumbnails for sharing with Facebook

Facebook’s integration which allows you to post a page to Facebook is really clever. A bit too clever in fact. The integration allows you to pass the url and title though to the sharing window. The sharing window then goes and take s a look at the page and selects the first few images it […]

Google dips its toe into font libraries

Posted by on Jul 4, 2010 in Code Chat | No Comments

Google releases a beta version of its font directory and API

Javascript variable names in Internet Explorer

Posted by on May 11, 2010 in Code Chat | No Comments

The more I work with JavaScript the more I enjoy it. One of the things I like best is that it is a front-end language where you generally don’t have to worry about cross-browser compatibility. It usually just works… Usually… This one tripped me up and it took me a while to pin down what […]