Update jsonCap.js
This commit is contained in:
@@ -22,11 +22,11 @@ function captureJSON() {
|
|||||||
content += '<td>' + respObj[i].Title + '</td></tr>';
|
content += '<td>' + respObj[i].Title + '</td></tr>';
|
||||||
if (i == len) content += '</table>';
|
if (i == len) content += '</table>';
|
||||||
}
|
}
|
||||||
div.innerHTML = content;
|
|
||||||
} else {
|
} else {
|
||||||
console.log('Connection to Server succeeded. Content was not received due to error.');
|
console.log('Connection to Server succeeded. Content was not received due to error.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
div.innerHTML = content;
|
||||||
};
|
};
|
||||||
xhr.open('GET', 'files/jsonData.json', true);
|
xhr.open('GET', 'files/jsonData.json', true);
|
||||||
xhr.send();
|
xhr.send();
|
||||||
|
|||||||
Reference in New Issue
Block a user