Though it seems to defy the concept of Ajax, an XMLHttpRequest can be synchronous (wait for response). How would you open such a request?
Once a request receives a response, it needs to be processed. How do you attach a function to call when the service responds?
What are the two states for a successful, and completed, request?
What are the three data formats you can use with a response, and what are the advantages of each?
Modify the Google Maps application in Example 13-6 to include a custom icon stored in a file called myicon.png.
Answers are provided in the appendix.