Mapping BBC Price of Football survey

Posted by & filed under Football, Mapping, Open Data, OpenLayers.

The BBC have released results of a survey undertaken in 2012 involvingĀ 166 clubs in 10 divisions across British football, including the Conference Premier and Women’s Super League gathering theĀ prices for the most expensive, and cheapest, season tickets and adult matchday tickets along with a programme and some say, most importantly a pie and tea. The… Read more »

Javascript message queue implementation

Posted by & filed under Coffeescript, Javascript, Programming.

Here is a Javascript implementation of a message queue that displays the messages in the ui – it is written in Coffeescript and compiles down to Javascript. Source available on github here. ui-message-queue is a Javascript implementation of a message queue allowing you to push messages (String) to the queue and display via a First… Read more »

Namespace your Javascript

Posted by & filed under Javascript, Programming.

We all know writing code with global functions and variables if bad news so what’s the alternative in Javascript to writing lots of objects? I dont think Javascript is very good as an object orientated language and doesnt do this sort of thing very well but you can put these objects/functions/variables in your own namespace…. Read more »

How to POST data via Javascript

Posted by & filed under Javascript, Programming.

Update: Or instead you could use the excellent jQuery library which has methods for this. Another thing I needed to do with Javascript was send quite a lot of data from the browser to code on the server, I was already using GET (where the data is in the URL string) but this can only… Read more »

How to change FORM onsubmit function

Posted by & filed under Javascript, Programming.

Ok, two Javascript post together here… I’ve been doing a lot with Javascript recently (results to follow shortly!). One thing that took me a while to work out how to do was to dynamically change the onsubmit action standard html form. So, you have a form and you want a different thing to happen depending… Read more »

Javascript class to build Googlemaps mapplet

Posted by & filed under Javascript, Programming.

Update: Alhough this works, I now know that its not the best way to do this so don’t use it! I have many Google maps dotted all over my site and was getting annoyed with many Javascript funtions to build these maps when they were commonly the same. So, I decided to create a Javascript… Read more »