K
kaipiroz
Hi all,
I have this js array dynamically generated by the server and converted
to JSON format:
var punti = [{"3": {"online": "no", "username": "phishman"}}, {"4":
{"online": "no", "username": "marco"}}]
and I need to catch the online status for every user but :
for (prop in punti) {
console.log(punti[prop].online);
}
returns "undefined" for every item in the array.
Why?
Thanx in advance,
Augusto
I have this js array dynamically generated by the server and converted
to JSON format:
var punti = [{"3": {"online": "no", "username": "phishman"}}, {"4":
{"online": "no", "username": "marco"}}]
and I need to catch the online status for every user but :
for (prop in punti) {
console.log(punti[prop].online);
}
returns "undefined" for every item in the array.
Why?
Thanx in advance,
Augusto