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:

Name:

Age:

Email:

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.

Custom post categories/category

August 13th, 2013|

I recently spent a bit of time trying to determine how to get the categories of a custom post type, I though that it would be very easy and if I had known the function below it probably would have done.

I was extending a testimonials widget and wanted to filter the testimonials by a selected […]

Make my site a Responsive website.

March 18th, 2013|

What is responsive?
Ok first let’s all get on the same page, responsive design to us means having your website respond to the different devices that it is served on, in a more favourable way. Historically websites have been fixed width with a boxed layout and pretty much stay the same on all devices, with the […]

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 […]

Shortcodes Plugin

November 19th, 2012|

Shortcodes Heading

I have just been playing around with Shortcodes Ultimate and its seemed too good to be true but on closer examination it is pretty much as good as you expect, saving lots of hours styling elements yourself.

There is a highlight shortcode.

Amersham Websites demo text.
[spoiler title=”Accordian Shorcode […]

Cookie Law Solution

October 14th, 2012|

Amersham Websites have delivered a very slick solution for clients to adhere to the new cookie regulations. As many of you are aware the cookie regulations mean you have to alert the user to the fact that the website they are on is using cookies, the solution awl uses is to simply display an overlay/dropdown […]

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 […]

Website Security

February 17th, 2012|

Here at Amersham Websites we take website security very seriously, we now provide all of our websites with a Limit Login Attempts plugin, this allows you to administer the amount of login attempts accepted before locking the user out, and also you can administer the amount of time the user is locked out for, we […]

WordPress functions on non wordpress pages

February 11th, 2012|

The problem

If you have insalled wordpress somewhere other than the root of your site how can you access the wordpress functions on a non wordpress page? So for example I had installed wordpress at ww.mydomain.com/wp/ but I wanted to access the wordpress functions on a page at www.mydomain/nonwordpress.php

The solution

Took me a little while to work […]

WordPress Basic’s

January 17th, 2012|

After spending numerous hours explaining to many clients how to use the wordpress platform I thought it would be helpful to produce a basic guide to using and performing basic functions, whilst most people do know how to do it I thought it would be a good idea to document for those who have forgotten […]

Get Directory for Image Paths

January 9th, 2012|

I am trying to post little snippets of help as I remember them and this issue was a bit annoying when I started out with wordpress but like most issues once solved it was pretty straight forward to fix, now a few clients have asked me about this too so here is the issue and […]

WordPress Widgets not saving

December 30th, 2011|

This has had me stumped for hours but I finally got to the bottom of it. I will do a more comprehensive article on this subject at a later date, but here is the issue and solution for those who come across this.

The issue

When dragging a widget into the widget area in the admin panel […]

Show posts short code

December 22nd, 2011|

Shortcodes are a really useful tool to perform functionailty or grab data that you require in your post without the need for complex code knowledge. Using predefined snippets you can pull in the required data you need. We have developed this shortcode for ourselves specificaly for pulling in posts, if you feel this would benefit […]

WordPress 3.3

December 21st, 2011|

With the new release of wordpress 3.3 Amersham Websites were real keen to try it out, named ‘Sonny’ after a Jazz musician, here at Amersham Websites we are calling it wordpress 3.3 as we are not as geeky.

There is a new drag and drop uploader which makes uploading media that much easier, as if it […]

HTML Canvas tag

December 20th, 2011|

I have recently been playing around with the new html canvas tag and seeing what its capabilities are, I’ve been quite impressed and it seems for drawing dynamic data this is going to be a real strong tool. You can also use it for animations which could mean this will replace flash, at the moment […]

Why use wordpress?

November 14th, 2011|

Amersham Websites Ltd (AWL) view

We use WordPress at AWL as it is a very easy to use interface. Our clients often do not have any coding knowledge and so WordPress provides the perfect software to enable them to update web content without the need to have any coding knowledge.

It is an open source software, meaning […]

Search Engine Optimisation

May 19th, 2011|

Search engine opitimisation is taken very seriously by companies as even the most aesthetically pleasing of websites with the best content don’t always generate enough traffic from search engines. Here is a few tips that we have come up with to help you get up to speed.

How do search engines work?
Spiders are sent out by […]

What is HTML5?

May 17th, 2011|

Quick definition: It’s the new verson of HTML.

More Reading: HTML5 is the term for the new version of HTML, well what is HTML? HTML is hyper text mark-up language and is the code used to build a web page, all browsers understand HTML and will build a web page out of it. So why change […]

Choosing a website

January 14th, 2011|

We thought give you a guide through all the things you will need to have in place for you to have a website, whether you have your own hosting package and domain already sorted to if you know nothing about the process the list below should help you on your quest to having your own […]

Web Term Glossary

January 14th, 2011|

Here are a few terms that you might hear whilst researching your website and maybe are not too sure what means, hopefully this glossary will help clear a few things up.

HTML – Hyper Text Mark-up Language, This is the language web browsers use to display the information on the page.
CSS – Cascading Style Sheet, This […]

What is the difference between CSS and HTML?

January 1st, 2011|

HTML is used to structure content. CSS is used for formatting structured content.

Okay, it sounds a bit technical and confusing. But please continue reading. It will all make sense to you soon.

Back in the good old days when Madonna was a virgin and a guy called Tim Berners Lee invented the World Wide Web, the […]