19. Understanding Ajax

After a Web page loads, it becomes—to take a famous phrase out of context—“an island, entire of itself.” No matter how much code is used to generate a Web page on the server, and no matter how many sources from which the data is pulled, after the Web page is displayed in the browser, it is cut off from the rest of the Web.

Web pages created with DHTML, for instance, can change the content displayed in the window on the fly, but all of that content has to be in the file when it’s downloaded from the server, and new data requires that a new Web page be loaded.

Reloading an entire Web page full of content is overkill, though, when you need to change only a small portion of the content, such as updating a form select field ...

Get CSS, DHTML, and Ajax: Visual QuickStart Guide, Fourth 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.