Update test.html
This commit is contained in:
@@ -17,9 +17,11 @@
|
|||||||
<div id="output"></div>
|
<div id="output"></div>
|
||||||
<script>
|
<script>
|
||||||
function displayInfo() {
|
function displayInfo() {
|
||||||
|
console.log('function is running...');
|
||||||
var xhttp = new XMLHttpRequest();
|
var xhttp = new XMLHttpRequest();
|
||||||
xhttp.onreadystatechange = funtion() {
|
xhttp.onreadystatechange = funtion() {
|
||||||
if (this.readyState == 4 && this.status == 200) {
|
if (this.readyState == 4 && this.status == 200) {
|
||||||
|
console.log('response received');
|
||||||
var data = JSON.parse(this.responseText),
|
var data = JSON.parse(this.responseText),
|
||||||
keys = Object.keys(data), len = keys.length,
|
keys = Object.keys(data), len = keys.length,
|
||||||
content = '<table><tr>';
|
content = '<table><tr>';
|
||||||
|
|||||||
Reference in New Issue
Block a user