From 7493c87f09ccd03eef6f3d73048fc3f55d6a1b26 Mon Sep 17 00:00:00 2001 From: tmeissner Date: Mon, 25 Feb 2013 18:01:57 +0100 Subject: [PATCH] bugifx in inner for loop in the ajax callback function --- scripts/haltestellen.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/haltestellen.js b/scripts/haltestellen.js index 8becae7..1ac94da 100644 --- a/scripts/haltestellen.js +++ b/scripts/haltestellen.js @@ -100,8 +100,8 @@ function ajaxCall(dataUrl, outputElement, callback) { var trala = data[i].split(","); console.log("part " + i + " of parsed data: " + data); for (y = 0; y < 3; y++) { - console.log("part " + y + ": " + data[y]); - htmlOutput += "" + data[y].slice(1,-1) + ""; + console.log("part " + y + ": " + trala[y]); + htmlOutput += "" + trala[y].slice(1,-1) + ""; } htmlOutput += ""; }