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’
- What is JSONP?
- Simple example for JSONP
- Accessing Stackoverflow API using JSONP
Continue reading “Getting started with JSON-P”
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:
- Getting started with HTML5 Geolocation API.
- Integrating Google map to show current location.
- Enhancing to show nearby places on Google map.
Continue reading “HTML5 Geolocation API with Goolge Maps”
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 power to the developers in creating rich applications for mobile and desktop browsers.
- Improving the page load times by using PageSpeed service. Interesting facts as to where the web page takes time to load were shared along with possible optimisations. I remember using PageSpeed to check the page load times for my blog, but I need to explore the PageSpeed service which does the optimisations on the fly.
Now coming to the expo booths-
- None of them had anything useful to share about the product there were displaying except for SafeNet,where the person in the booth explained exactly what the product does and was in a position to answer the queries.
- ThoughtWorks were giving out ThoughtWorks Radar and the people in the booth were from the recruitment team, but I thought they should have got a developer or two there who could explain as to how Radar is prepared or may be talk a bit or two about few upcoming technologies or the technologies they are working on.
- The funniest stall was the JetBrains where I guess the person was from the sales/marketing team and had no clue as to how JetBrains is better than Eclipse or Netbeans. I asked him few questions about the features in JetBrains and all he had to say was, please ask your company to get in touch with us, we will provide them live demo from US and before that talk about the purchase plan of your company. Now does that impress hundreds of developers who visit the stall?
Lot to explore tomorrow and the day after. Stay tuned for more updates here.