PS: I will be mostly adding my technical articles on Javabeat and all my previous articles can be found here. And I will link interesting and useful articles from this blog.
We all have enjoyed reading the Head First series of books and this book i.e Head First HTML5 Programming is no different. The authors Eric Freeman and Elisabeth Robson have kept the content in the book as much practical as possible which means that your are more of coding than reading. Not all the features of HTML 5 have been covered and the few which were not covered, the authors have mentioned them in the Appendices. But the authors have covered quite a few important and tough to understand features.
The examples explaning the video and web worker features have used complicated examples which might pose some problems for few but then those examples show the power of those features.
I would recommend anyone who wants to explore HTML5 to pick this book and not get turned off by the number of pages.
Buy this book from Flipkart
Buy this book from O’Reilly site.
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
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.