steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

loop through json array

I have an Appery database List_service which returns all the rows in the database.
In the success event I need to loop thru the rows to get a total Price (sum of cost column)

success event javascript
var m = JSON.stringify(data);
alert(m.length.toString());

The alert shows 161 when there is only 1 row in the database

if I use the following
for (var i=0, l=m.length; i}]

what am I doing wrong

regards
Steve

Return to “Issues”