Exercise 11.5

This is Exercise 11.5, lecture on communicating with backend, used in the course IDATA2301 Web technologies at NTNU, campus Aalesund.

Go back to exercise list.

Purpose

The purpose of the exercise is practice showing a busy indicator while waiting for a response to an Ajax request.

Instructions

Extend your solution for Exercise 11.3:

  1. Send the request to a new URL: https://web-tek.ninja/php_backend/delayed_dice.php. This API creates an artificial delay to simulate a long request.
  2. Show some kind of busy indicator to the user while the request is in progress.
  3. Remember to hide the indicator when the response is received.

Solution

You can find a solution here.