Skip to main content

AJAX

Learn AJAX from the request lifecycle to modern Fetch and Streams: XHR, JSON, forms, uploads, progress, CORS, security, and debugging.

About this course

AJAX lets a page exchange data with the server without a full reload. This course follows the technique from its origins through the modern Fetch and Streams APIs, with practical code for each stage.

The AJAX section covers the request lifecycle, XMLHttpRequest, response formats, forms, uploads, progress reporting, status codes, browser differences, database-backed requests, and security. The Fetch API section covers requests, responses, headers, credentials, JSON, custom clients, file uploads, binary data, and error handling. The Streams section covers readable, writable, and transform streams alongside request and response bodies.

Each topic pairs a short explanation with examples you can run in a browser. The material assumes basic HTML, CSS, and JavaScript knowledge.

Start learning 54 topics