Treffer: Build a CRUD Page Using JavaScript and the XMLHttpRequest Object.

Title:
Build a CRUD Page Using JavaScript and the XMLHttpRequest Object.
Authors:
Sheriff, Paul D. psheriff@pdsa.com
Source:
CODE Magazine. May/Jun2021, p13-21. 9p.
Database:
Academic Search Index

Weitere Informationen

In this article, you learned to use the XMLHttpRequest object and the mustache templating engine to build a CRUD page. In addition, you learned to add error handling to your code. When you find yourself creating a lot of duplicate code, try to find ways to make that code more generic by creating a function to call as you did by creating the ajax() function. Creating this generic function greatly simplifies the use of the XMLHttpRequest object throughout your project. In the next article, you'll learn to use Promises to wrap up the calls to the XMLHttpRequest object and see a built-in API call Fetch that also uses Promises. [ABSTRACT FROM AUTHOR]