I got from AJAX query a string like this:
... etc
Created a dynamic table to expose the data:
The last field in ansverStr substrings is a time.
The question: How can I access to those values in this column in dynamic table to convert them into time format
Code:
var ansverStr = "[1,\"Bedford Street\",\"Oxford Circus, Green Park or Westminster\",\"15\",\"Regent Street\",1343329406000]\r\n [1,\"Bedford Street\",\"Oxford Circus, Green Park or Westminster\",\"13\",\"Golders Green\",1343329883000]\r\n [1,\"Bedford Street\",\"Oxford Circus, Green Park or Westminster\",\"176\",\"Tottenham Ct Rd\",1343329612000]"
Created a dynamic table to expose the data:
Code:
var element;
element = '' + ansverStr.split('\r\n').map(function(line){ return '' + JSON.parse(line).map(function(cell){ return '' + cell + ''; }).join('') + ''; }).join('') + ''; document.getElementById("bStop").innerHTML=element;
The question: How can I access to those values in this column in dynamic table to convert them into time format
Comment