Section 13.7. Questions


13.7. Questions

  1. Though it seems to defy the concept of Ajax, an XMLHttpRequest can be synchronous (wait for response). How would you open such a request?

  2. Once a request receives a response, it needs to be processed. How do you attach a function to call when the service responds?

  3. What are the two states for a successful, and completed, request?

  4. What are the three data formats you can use with a response, and what are the advantages of each?

  5. 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.




Learning JavaScript
Learning JavaScript, 2nd Edition
ISBN: 0596521871
EAN: 2147483647
Year: 2006
Pages: 151

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net