From 2e263f1b14bc7c7de7db967b1bac65b3ded1a7c4 Mon Sep 17 00:00:00 2001 From: d3m1g0d Date: Sat, 6 Apr 2019 15:51:38 +0200 Subject: [PATCH] table parsing test no 1 --- frontend/frontend.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/frontend.js b/frontend/frontend.js index 168440e..c37d2a3 100644 --- a/frontend/frontend.js +++ b/frontend/frontend.js @@ -1,7 +1,10 @@ -$('#update').click(updateData; +$('#update').click(updateData); function updateData () { const url = 'http://' + window.location.hostname + ':5000/data'; $.get(url, function (data, status) { $('#debug').text(data); + for (const i in data[0]) { + $(i).text(data[0][i]); + } }) }