Chapter 14 covered the use of XML to exchange date between a client and a server. When the client is created with JavaScript in a browser it’s much easier to exchange data with something called JSON. JSON is an acronym for JavaScript Object Notation. It is a sting-like notation that makes it easy to declare complex structures like arrays and object.
Recipe 15-1. Fetching Data with AJAX
Problem
Traditionally a browser is used to fetch HTML pages from a server. Navigation to a different page on the same or different server is done with links in the HTML document. When a user clicks ...