AJAX (and its successor Fetch API) allow a web application to send data to and fetch data from a server using the HTTP protocol without refreshing the page. This course is designed for JavaScript programmers who want to understand not only the [...]
  • JS_AJAX
  • Duration 2 days
  • 20 ITK points
  • 0 terms
  • Praha (15 400 Kč)

    Brno (15 400 Kč)

    Bratislava (660 €)

  • Advanced

AJAX (and its successor Fetch API) allow a web application to send data to and fetch data from a server using the HTTP protocol without refreshing the page. This course is designed for JavaScript programmers who want to understand not only the principles of HTTP but also how to handle asynchronous requests in a modern way in a variety of scenarios.

»
  • HTTP protocol, client-server communication
  • From the 204 status code to the Fetch API
  • Asynchronous requests and their processing
  • HTTP protocol methods (GET, POST and others)
  • XMLHttpRequest object
  • Structured data (JSON, XML)
  • Request cancellation, timeout
  • Caching, redirection
  • Upload and download monitoring
  • Multiple requests and their processing
  • Cookies and user login, security
  • Fetch API, Promises, await, async
  • Cross Domain Requests (CORS)
  • Working with files
  • Session-history management (Back button solution)
  • Basic knowledge of JavaScript at INTJS course level.

HTTP protocol

  • client request, server response
  • status codes (200, 301, 404, etc.)
  • GET, POST, etc. methods
  • HTTP headers you need to know
  • development tools

Client-server communication without page refresh

  • status code 204
  • dynamically generated <script src="">
  • XMLHttpRequest (XHR, AJAX)
  • Fetch API
  • briefly about other technologies (WebSockets, Server-Sent Events, WebRTC)

Processing asynchronous requests

  • events: from readystatechange to load
  • error conditions
  • Promises
  • await, async

Structured data

  • enctype attribute, Content-Type header
  • XML
  • JSON

Request timing

  • timeout
  • abort
  • multiple requests

Caching, redirection

Actual download or upload progress

User login, cookies

Cross-domain requests (CORS)

Working with files

  • files accessed by the user (input, drag&drop)
  • file upload (FormData)
  • file downloads (working with binary data)

Session-history management (Back button solution)

Fetch API - modern successor of AJAX

Current offer
Training location
Course language

The prices are without VAT.