What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-30 17:51:03
what's the logic of ajax
function loadDoc() { //step 1. as you clearly understand var xhttp = new XMLHttpRequest(); //step 2. Here you are defining the function that should run once the data is 'ready' xhttp.onreadystatechange = function() { if (this.readyState == 4 ... Add solution -
Javascript 2021-09-25 20:37:02
xmlhttprequest javascript
var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { // Typical action to be performed when the document is ready: document.getElementById("demo").i... Add solution