XMLHttpRequest tutorial - GET & POST data using Vanilla JavaScript AJAX

Опубликовано: 23 Май 2021
на канале: ZeyadCode-Gaming
1,081
15

XMLHttpRequest tutorial - GET & POST data using Vanilla JavaScript AJAX request (Ajax tutorial and what is ajax)

Source Code: https://github.com/zeyad-shaban/xmlht...
API Used: https://jsonplaceholder.typicode.com/...


The XMLHttpRequest object is used to send a request to any API and get a response from it which will contain data in a JSON format, this is known as AJAX technology

We won't use Jquery for this, just Vanilla JavaScript using the XMLHttpRequest object

We will learn how to send data to the server using the POST HTTP method (or PUT) and how to get Data from the server using the GET HTTP method and we are going to deal with the response we get from the server using the onload event handler

We will also learn how to handle errors after getting the response from our XMLHttpRequest request


На этой странице сайта вы можете посмотреть видео онлайн XMLHttpRequest tutorial - GET & POST data using Vanilla JavaScript AJAX длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь ZeyadCode-Gaming 23 Май 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,081 раз и оно понравилось 15 зрителям. Приятного просмотра!