O'Reilly logo

HTML5 Web Application Development By Example Beginner's guide by J.M. Gustafson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter we created a weather widget that can be placed on any page. We made Ajax requests to get static XML and JSON data from the server. We learned how to find the user's location using the Geolocation API, and used that to call a web service to get localized weather data.

We covered the following concepts in this chapter:

  • How to read XML and JSON files from the server using Ajax
  • How to extract data from XML returned from server calls using jQuery
  • How to get the user's current position anywhere in the world using the HTML5 Geolocation API
  • How to interact with web services asynchronously using Ajax
  • Using JSONP to get around the security restrictions of cross site scripting
  • How to get the weather report for a user's current location using ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required