Home > Articles > Open Source > Ajax & JavaScript

  • Print
  • + Share This
This chapter is from the book

Summary

This chapter covered the most common uses of AJAX. The recipes cover fetching JSON, HTML, and XML, as well as many error scenarios. You can pass HTTP headers, validate form input in the background, and listen for AJAX events in general. The last recipe showed a dirty hack to load data from other servers by using JSONP. Because of security risks and a lack of error handling, it is better to avoid JSONP.

  • + Share This
  • 🔖 Save To Your Account