Google Maps & Geolocation Detection

December 11th, 2013|

Detecting a users location can be very useful and incorporated into functionality, your imagination is your only limit with this technology, when this page first loaded you would have hopefully have been asked to give permission to the website to allow it to know your location.

When developing a function using geolocation it’s important to remember […]

Javascript Prototype – Example and code

November 18th, 2013|

Prototype is a really efficient way of extending an object or class and I have found numerous uses of this over the years, getting to know the way prototype works will greatly improve your ability to develop javascript, you will eventualy create your own tools using prototype.

The code below is an extension of the array […]

Javascript Form Validation Object

November 12th, 2013|

Form validation is so important from a usability point of view, this is a form hoping to encapsulate all form elements and how we validate them on the front end to prevent an erroneous form submission, in other words getting all the information correct before sending it off. Try using the form below:




Favourite farm yard […]

Javascript Calculator

November 7th, 2013|

This basic javascript calculator is a handy tool for most websites, I have kept it basic due to time restrictions but now the framework is in place it could easily be extended to add in a few extra functions or a more scientific view.

Javascript For Loops – Whats the fastest?

February 19th, 2013|

Firstly apologies for the load time, I will make the timings based around an action one day, Ok lets keep this simple, there are a few different ways of looping through arrays, lets see which ones perform the best, try this page in the browser of your choice.
Base Array
This will be the array that all […]

Chrome reorders keys – not reordering correctly

February 19th, 2013|

I have come across this javascript issue today in googe chrome, if you are setting up an object and then looping through it, google chrome seems to reorder the keys automatically so if you are looping through expecting some data in a certain order this may cause an issue. Example:

var object = { 3: 3, […]

Ajax connections manager

February 16th, 2013|

As most people know internet explorer has a maximum capacity of 2 http connections at one time, so when more than 2 ajax calls were made on a page at the same time one of the ajax requests was being forgotten, as this was an issue for one fo my clients I built this object […]

Creating a jQuery plugin

April 5th, 2012|

Many people have asked me how easy it is to create a jQuery plugin so I thought I’d have a go at trying to explain it, I hope this makes sense.

I am presuming you know the basics about setting up jQuery on your page and how to include a javascript file.
Step 1
Firstly create a new […]