GDirections 25 element limit

April 28th, 2008

There’s an undocumented feature in the Google Maps API when retrieve driving direction wherein any GDirections request with more than 25 elements returns an error with code G_GEO_BAD_REQUEST (400). This isn’t particularly helpful but I found the answer in the Google Maps forums somewhere. So the trick is to partition your array of waypoints into […]


Control.Modal.Dialog - a lightweight javascript modal dialog library

April 8th, 2008

Recently we realised that we were in need of a modal form/dialog. Sure there is a javascript “dialog” function however it is completely useless in IE7 and what’s more it’s not really ideal in other browsers. Most of our work is based on Prototype/Scriptaculous and we have used Control.Modal in other projects so I went […]


APIs are Hard but fun

March 22nd, 2008

Currently I’m working on an abstraction layer for the Google Maps API, this is purely written in Javascript, allowing any language to produce JSON objects and pass them quite seemlessly onto a Google Map. Originally this was planned to be able to be used across maps APIs (Virtual Earth, Yahoo Maps) but has descended into […]


Facebook wall-to-wall and the back button

October 31st, 2007

I’ve recently been working with the awesome Really Simple History javascript library to make Ajax loaded pages bookmarkable, it’s a bit confusing at times, but really not too hard. But it’s amazing when you work on something like that, how much it makes you notice when other websites don’t execute the little things well. For […]


January 30th, 2007

John Resig has a good write up on the new DOM Storage features being specced out by the WHAT-WG. I’m looking forward to his writing about all the Javascripty goodness they are working on at Mozilla at the moment.


re-Introduction to Javascript

May 4th, 2006

I’ve been trying to do some higher level work with javascript and I had to go back through my feeds to find these slides that have really good information regarding the fundamentals of Javascript.


What I hate in Javascript

April 28th, 2006

The thing that gets on my nerves the most about javascript, is it’s silent deaths. I have a function XpathAttr that if you don’t pass it the correct parameter, In this case a XMLHTTPRequest object, it dies. No error, no Exception, no nothing.
Now I realise I could throw my own exception, or check that the […]