Chapter 10. Data retrieval

Most web sites are collections of HTML documents. These documents are connected by hyperlinks, and clicking on such links causes the browser to discard the old page and load the new one, a process that may take a few seconds.

This is fine as far as it goes, but occasionally you want a spiffier interface that doesn’t change or flicker while new data is being fetched from the server, and where the new data is integrated seamlessly into the existing page. Usually this is called a Single Page Interface, since the users enter a certain page, and all actions they take result in new data being shown within that page.

From a JavaScript perspective, the question is one of data retrieval: how do you retrieve data from the server ...

Get ppk on JavaScript 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.