Summary
This chapter has covered the basics of using Ajax, including:
How client-server communication using Ajax differs from the traditional type of web-based client-server communication
How to create a request object and send requests
How to get results from a request object once the request has been fulfilled
What asynchronicity means, and what it can do for you
What problems may arise
When to use Ajax
This is just the first of three chapters on Ajax. The next chapter deals with how to use XML to share information between a web browser and a webserver. Chapter 16 gets you started with writing programs that run on webservers and communicate with the Ajax you learned in this chapter and that you'll learn in Chapter 15.
Get The Book of JavaScript, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.