Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
AJAX JavaScript XHR and Fetch
Rating: 4.2 out of 5(53 ratings)
3,378 students

AJAX JavaScript XHR and Fetch

Learn how to use AJAX within your web applications, Course covers vanilla JavaScript using XMLHttpRequests and Fetch
Created byLaurence Svekis
Last updated 11/2024
English

What you'll learn

  • Use AJAX to get JSON data into their web pages
  • Use XHR requests to connect to servers and APIs
  • Use Fetch within web development

Course content

2 sections23 lectures1h 42m total length
  • Introduction to using AJAX XHR and Fetch in JavaScript4:32
  • Developer setup environment3:47
  • Localhost Setup9:31
  • AJAX introduction for Fetch and XHR7:47
  • XHR requests across the web11:52
  • Exercise Random User XHR option6:23
  • Exercise Random User AJAX Load Data5:38
  • Source Code Ajax Exercise0:16
  • More XHR practice4:26
  • XHR Request Data9:34
  • Joke Exercise AJAX Source Code0:12
  • JavaScript Fetch5:23
  • Source Code Fetch Intro0:14
  • Fetch Promise Response8:22
  • Fetch Options5:17
  • Source Code Fetch Jokes0:13
  • Post with Fetch5:06
  • Fetch Form Submit Data10:34
  • Source Code Form Submit0:27
  • Course Overview and summary1:57
  • Resources0:01

Requirements

  • JavaScript Experience and HTML and CSS
  • You should have web development Experience

Description

Welcome to our introductory course for using AJAX - Asynchronous JavaScript And XML

AJAX allows web pages to request small chunks of data (such as HTML, XML, JSON, or plain text) and display them only when needed.  This is achieved by using APIs like XMLHttpRequest or Fetch API. These technologies allow web pages to directly handle making HTTP requests for specific resources 

Typically when a user goes to a website the user has to wait for the server to respond with the data.  This is not the case as with AJAX we have the option to load the data when the user is already on the page making the user really happy.

This course covers making AJAX requests using the XMLHttpRequest as well as the newer fetch.   

Use JavaScript to send requests, receive response content and use the response data to output into the html.  JavaScript is at the center of it all connecting the web page content to the server data and doing all the work in between.

Course Covers

  • How to setup a localhost
  • What Fetch and XHR are and how they work
  • How to load an external files into the JavaScript
  • How to connect to web apis and load data
  • Using JavaScript to read response content and make use of it
  • Exercise to build a random user loader
  • Using AJAX to get a txt file content
  • Exercise Getting Random Jokes to output on a website
  • Using Fetch
  • Exercise Posting form data to a server using Fetch
  • Practice AJAX

Source Code is included

Friendly support in the Q&A section

Taught by an instructor with many years real world web development experience ready to answer your questions and help you learn AJAX.

What are you waiting for take the first step start learning AJAX and experience the amazing things YOU can build with AJAX?


Who this course is for:

  • Web developers who want to practice AJAX
  • Anyone who wants to learn more about XHR and Fetch requests
  • JavaScript developers