O'Reilly logo

Learning PHP, MySQL, JavaScript, and CSS, 2nd Edition by Robin Nixon

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

Test Your Knowledge

  1. Why is it necessary to write a function for creating new XMLHttpRequest objects?

  2. What is the purpose of the try...catch construct?

  3. How many properties and how many methods does an XMLHttpRequest object have?

  4. How can you tell when an Ajax call has completed?

  5. How do you know whether an Ajax call completed successfully?

  6. What property of the XMLHttpRequest object returns an Ajax text response?

  7. What property of the XMLHttpRequest object returns an Ajax XML response?

  8. How can you specify a callback function to handle Ajax responses?

  9. What XMLHttpRequest method is used to initiate an Ajax request?

  10. What are the main differences between an Ajax GET and POST request?

See Chapter 17 Answers in Appendix A for the answers to these questions.

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