JSFiddle - React, Tailwind, and code Playground
by grant
HTML
<button id="ajaxButton" type="button">Make a request</button>
JavaScript
var url = 'https://lrio.com/php/bear_test.php';
url = 'https://lrio.com/php/geojson.php';
url = 'https://lrio.com/php/fileGet.php';
url = 'https://avalanche.ca/api/forecasts/cariboos.rss';
url = "https://cmhheliwebsite.blob.core.windows.net/staticcache/weather/weather.json";
url = "https://lrio.com/php/jsfiddle.php";
const xhr = new XMLHttpRequest();
xhr.open('GET', url);
// set response format xml or json
xhr.responseType = 'json';
xhr.send();
xhr.onload = () => {
// get JSON response
const data = xhr.response;
//console.log(data)
// log details
/* console.log(data.features.properties[0]) */; // John Doe
for (var i in data.properties) {
console.log(cfs[i]);
}
}