From ffba87ed8778d05107eaceeed7774f3431ffd042 Mon Sep 17 00:00:00 2001 From: Val <35149642+vkservicesllc@users.noreply.github.com> Date: Wed, 7 Nov 2018 16:18:23 -0500 Subject: [PATCH] Update jsonCap.js --- ajax-requests/js/jsonCap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ajax-requests/js/jsonCap.js b/ajax-requests/js/jsonCap.js index 623e214..b7096ff 100644 --- a/ajax-requests/js/jsonCap.js +++ b/ajax-requests/js/jsonCap.js @@ -22,11 +22,11 @@ function captureJSON() { content += '' + respObj[i].Title + ''; if (i == len) content += ''; } - div.innerHTML = content; } else { console.log('Connection to Server succeeded. Content was not received due to error.'); } } + div.innerHTML = content; }; xhr.open('GET', 'files/jsonData.json', true); xhr.send();