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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access