Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

AJAX - The XMLHttpRequest Object

// Create an XMLHttpRequest object
const xhttp = new XMLHttpRequest();

// Define a callback function
xhttp.onload = function() {
  // Here you can use the Data
}

// Send a request
xhttp.open("GET", "ajax_info.txt");
xhttp.send();
Comment

AJAX - XMLHttpRequest

xhttp.open("GET", "demo_get.asp");
xhttp.send();
Comment

PREVIOUS NEXT
Code Example
Javascript :: material ui phone number input 
Javascript :: prisma database example 
Javascript :: keyframe options 
Javascript :: javascript add method to a class 
Javascript :: javascript json to string print 
Javascript :: react native time range picker 
Javascript :: html to pdf javascript libraries 
Javascript :: react-drag-drop-files open twice 
Javascript :: crud with firestore 
Javascript :: electron js 
Javascript :: chrome-aws-lambda 
Javascript :: react navigation 4 
Javascript :: work with query string javascript 
Javascript :: node api with mongodb 
Javascript :: javascript set query parameters in url 
Javascript :: how to stop requestanimationframe in javascript 
Javascript :: js filter array 
Javascript :: end of file expected json 
Javascript :: es6 class example 
Javascript :: vue 
Javascript :: how to make an if statement in javascript 
Javascript :: javascript draw canvas grid 
Javascript :: factory function in javascript 
Javascript :: adding cors in angular 
Javascript :: what is cross browser testing 
Javascript :: regex validate email 
Javascript :: JavaScript Debug usage Example 
Javascript :: passport local 
Javascript :: background image react 
Javascript :: how to edit image tags in javascript 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =