Short video - Objet XMLHttpRequest en AJAX

17 Jan 2023 · 2 min
2:17

In this short French-language tutorial, the presenter walks through using the XMLHttpRequest object to perform an AJAX request that fetches content from a server-side text file (contenu.txt) and injects it into a web page without a full page reload. The demo starts with a button that, when clicked, triggers a function named ajaxIn. Inside ajaxIn, the code creates an XMLHttpRequest instance (xhr) and displays it in the console to confirm successful creation. To ensure compatibility with older Internet Explorer versions, the presenter adds a try‑catch block that falls back to creating the object via ActiveXObject if the standard XMLHttpRequest constructor throws an exception. The tutorial then proceeds to configure the request, send it, and place the server response beneath the button, illustrating a complete, dynamic content update using AJAX.

Chapters

More from Yamossoun

8:56
youtube.com

Compteur synchrone - Logique séquentielle

2w ago
11:58
youtube.com

Compteur asynchrone et diviseur de fréquence - Logique séquentielle

3w ago
11:37
youtube.com

Les registres (parallèle et à décalage) - Logique séquentielle

1mo ago
6:14
youtube.com

Bascule T (Toggle) - Logique séquentielle

1mo ago
12:05
youtube.com

Bascule JK - Logique séquentielle

1mo ago
9:17
youtube.com

Bascule D flip-flop active sur front montant - Logique séquentielle

1mo ago
10:08
youtube.com

Bascule D Latch - Logique séquentielle

1mo ago
8:13
youtube.com

Bascule RS - Logique séquentielle

1mo ago
5:04
youtube.com

Logique séquentielle - Introduction

2mo ago
1:15
youtube.com

Le codeur - Logique combinatoire #codeur #logique #circuit #booleanlogic

2mo ago
1:56
youtube.com

Algorithme de calcule de la racine carrée par dichotomie #dichotomy #squareroot #algorithm

3mo ago
See all content