
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.
Read the rest of this entry »

Since I recently added my own Twitter feed to my website, I used it as the base for my latest PC Pro article adding your Twitter feed to your website with jQuery.
As usual, feel free to comment here or there.

Recently I decided to provide all the copyright dates on my sites in Roman numerals rather than decimal, just for something different. It’s not a major change I know, but it was something I wanted to do.
Read the rest of this entry »

I’ve altered my already small homesite to run that bit faster by optimising both my JavaScript and CSS files, and also allowing Google to host the jQuery file.
Read the rest of this entry »
Just a quick and simple post, that’s possibly nothing new to you, but it might be useful to others.
If you want to perform a check on what a string starts with in Javascript, you can use the substring(startpos, endpos) method, startpos is a required parameter and indicates where in the string to start the extraction, endpos is optional and indicates where the extraction is to end (if not supplied, it will extract to the end of string).
For example, to check if a string starts with ‘ABC’ you would do the following:
var mystring = "ABCDEF";
var text = mystring.substring(0, 3);
if (text == 'ABC') alert("string starts with ABC!');
Note that if the string being extracted from is shorter than the amount to extract, e.g. using the above example if mystring = 'AB', the extraction will still work, but in this case text = 'AB'.
Again this may be something that is old news to some of you, and perhaps it is to me as well and I had forgotten, but today I was hugely frustrated with .NET seemingly ignoring some perfectly populated fields and the validators reporting that they were empty.
Read the rest of this entry »