Parse date of Facebook OpenGraph API response with JavasScript

Converting datetime string from Facebook API response to JavaScript Date object
Recently I had an issue while working on an update for my Facebook Album Browser plugin with dates returned from Facebook OpenGraph API. The dates are returned in the following form 2011-06-13T23:31:19+0000 and luckily for me, converting this string to an actual Date object in JavaScript worked pretty well for most of the browsers, but some of them like Safari on iPad did not know to convert this string to a Date object and because of that I was getting default JavaScript date 1970-01-01 00:00:00 UTC+00. After some time spent googling and checking regular expressions, I did not find a suitable solution for this. ... read more

Delayed execution in JavaScript

Thread sleep equivalent in JavaScript
Not very often, but from time to time you need to slow down your code. Most of the time the reason for that is that you need to test some long execution, mostly external source call ... read more

Working with GoogleMaps in jQuery style

jQuery plugin for GoogleMaps
I've used GoogleMaps on several web projects and it seemed to methat I'm repeating a lot of code used in the previous projects which lead me to write a common Javascript library to help me easily reuse the code by only copying the JavaScript library to a project or referencing it from CDN. I could not think of a better way to build this library than to use jQuery and build a pligin for this. ... read more


read more


read more