Getting started with JSON-P

I have during my college days used XMLHttpRequest object and its equivalent in Microsoft world to make Ajax calls and those Ajax calls were to the URL within the same domain. But with the advent of Webservices and whole lot of mashups being developed, Ajax calls are not restricted to same domain but the cut acorss different domains. When this cutting across domain boundaries happens making Ajax calls using XMLHttpRequest fails due to security enforcements implemened by the browsers. That’s when the idea of JSON-P i.e JSON with Padding came up.

In this post I will quote from different sources about JSONP and then go ahead and implement example which invokes Stackoverflow API to retrieve the unanswered questions tagged ‘jsonp’

  1. What is JSONP?
  2. Simple example for JSONP
  3. Accessing Stackoverflow API using JSONP

Read more

HTML5 Geolocation API with Goolge Maps

I have been reading Head First HTML5 and read about the Geolocation support in HTML5 and also went through the example they have shared about using the Google Maps with HTML5 geolocation API. It was an interesting example and I went a step further and enhanced the example to show some eat outs around the current location. For this I made use of the Places library which comes with the Google Maps API.

In this post I will cover:

  1. Getting started with HTML5 Geolocation API.
  2. Integrating Google map to show current location.
  3. Enhancing to show nearby places on Google map.

Read more

Birds Eyeview of Web track at the GIDS 2012

The main focus of the day was the emergence or in otherwords out growth of mobile devices over desktop/laptop in the Q4 of 2010. And also the importance of making the applications mobile compatible. With the advent of HTML5 and lot of browsers including mobile browsers providing support for these features, it gives much more … Read more

Web conferences at Great Indian Developer Summit 2011

My first day at the Great Indian Developer Summit 2011 was the Web conferences where in major presentations I attended were all about HTML5, RDFa, Microformats, jQuery and JavaScript. There was a PlayBook related key-note, the sad part of that key-note was that though the speaker had the PlayBook in his hand he didnt bother to show it to the audience. I have briefly listed the topics covered in the sessions I attended.

Read more

%d bloggers like this: