Update jsonCap.js

This commit is contained in:
Val
2018-11-07 16:18:23 -05:00
committed by GitHub
parent 60ffe66dae
commit ffba87ed87

View File

@@ -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();