Using AJAX and REST to Build a Database-Driven Website

In this chapter, you will move on to the next level, away from a standard web application and into what is needed to have the application respond to AJAX queries and REpresentational State Transfer (RESTrequests. The tasks presented in this chapter build on the example presented in the previous chapter, Chapter 5Mission-Critical MongoDB Database Tasks.

In this chapter, we will first introduce you to the concept of pagination, and how it might be applied to a purchase history. You will then learn how to incorporate jQuery DataTables into a list of products for purchase. You will also be shown how to serve graphics directly from the database. Finally, you will learn how to handle a ...

Get Learn MongoDB 4.x 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.