From 2aced40620a6f76be872f59bd95428e44038b31a Mon Sep 17 00:00:00 2001 From: Val <35149642+vkservicesllc@users.noreply.github.com> Date: Wed, 7 Nov 2018 16:22:53 -0500 Subject: [PATCH] Update jsonCap.js --- ajax-requests/js/jsonCap.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ajax-requests/js/jsonCap.js b/ajax-requests/js/jsonCap.js index b7096ff..f70fb22 100644 --- a/ajax-requests/js/jsonCap.js +++ b/ajax-requests/js/jsonCap.js @@ -1,18 +1,16 @@ -console.log('jsonCap.js is running...'); +console.log('jsonCap.js has loaded...'); function captureJSON() { var xhr = new XMLHttpRequest(); xhr.onload = function() { var div = document.getElementById('capturedJSON'), content = '', - check = div.innerHTML === content; - console.log(check); + check = div.innerHTML == content; if (check) { if (xhr.status >= 200 && xhr.status < 400) { var respObj = JSON.parse(xhr.responseText), len = respObj.length, i; - console.log(xhr.responseText); content += ''; content += ''; for (i = 0; i < len; i++) {
CompanyFirst NameLast NameTitle