Answers for "how to fetch data from database in javascript using ajax"

0

how to fetch data from database in javascript using ajax

var xhttp = new XMLHttpRequest();
  xhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
      return this.responseText;
    }
  };
  xhttp.open("GET", "[your database]", true);
  xhttp.send();


//add the url of your database in the [your database] string.
Posted by: Guest on April-15-2021

Code answers related to "how to fetch data from database in javascript using ajax"

Code answers related to "Javascript"

Browse Popular Code Answers by Language