© Risto Viita/Shutterstock


Communicating with AJAX

AS YOU HAVE LEARNED, when you visit a webpage, your browser requests the page’s HTML, CSS, JavaScript, and image files. If you click on a link within the page, this process repeats with a new page and its set of files. Web developers understand this file request model. To improve webpage processing capabilities and functionality, developers can take advantage of the fact that JavaScript can send data and request content to or from a remote server. Asynchronous JavaScript and XML, or AJAX, is a technique that developers can use to perform JavaScript-based interactions with a server.

Get Introduction to Web Development Using HTML 5 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.