I'm doing an ajax-call, which returns an array. This returned array consists of arrays, in each of which is another array :
I'm trying to do a for-loop in javascript, to create an element for each of these arrays in the response-array. My code:
$.ajax({
url: $("base").attr('href') + 'json/handler',
data : data,
cache: false,
contentType: false,
processData: false,
type: 'POST',
success: function(data){
console.log(data);
for(var entry in data) {
$('#testdiv').prepend("<span class='test' data-unixtime='" + entry[2] + "'>" + entry[0] + "</span><br>");
}
entry[0] and entry[2] just return a single (random) number. I also cant seem to reach the data in the nested-array by using entry[1][tablename].
I tried multiple ways of doing the loop and got a few different (random?) numbers out of it, but nothing has come even close to the values I need.

entryis, it's not what you think it is. Also don't usefor inon arrays.var arrayLength = data.length; for (var i = 0; i < arrayLength; i++) { alert(data[i]);thanks!"tablename"