Journal

Entries marked as: javascript

Mr. Sherlock Holmes

Like many other people around the world I am a huge fan of Sir Arthur Conan Doyle’s Sherlock Holmes. I thought I had read them all until recently I came across a list of stories and discovered that I had not. I was on my phone at the time so I searched online for some decent HTML version.

A lesson learned

Today I thought it would be cool and useful to have the time element display the value of its datetime attribute on hover, as sometimes the text that is displayed isn’t fine enough. So I quickly built something that did this in JavaScript only to find out a much easier method later on.

A different kind of HTML5 shim

As I’m sure many of you are aware, in order to get older versions of Internet Explorer to recognise and apply styles to the new elements defined in HTML5, a JavaScript file known as a “shiv” or “shim” needs to be used.

Marking an OS Grid Reference position on a Google Map

Last week I blogged over at PC Pro on how to display a location marker on a Google Map. This assumes that you either enter a standard address and/or postcode/zipcode and relies on Google’s Geocoder to perform the transformation from the entered details into a latitude and longitude value.

All good. But I received one comment on my PC Pro article asking about OS (Ordnance Survey) Grid References and displaying them on a Google Map.