javascript using ajax with ASC
I'm getting started on a new project to improve the list of my posts.
I looking to extract the number of replies per thread. I'm learning ajax. I seem to have found the data I want, but am not getting the data into a structure that I can use. I believe that the data is being returned as one string, but I want it to be an array of strings. I'm trying to get the number of replies into an array. I'm getting replies into a string. It could be my console.log code is wrong.
I'm sure there are other ways of extracting the date, but I'm looking to use ajax in this attempt.
ASC web pages is:
https://discussions.apple.com/content?filterID=following~objecttype~objecttype[t hread]
//
var foundIt = $("table tr.js-browse-item td.j-td-replies").text();
console.log(foundIt);
for ( i = 0;i<foundIt.length;++i )
{
console.log("reply " + i + " is " + foundIt[i] );
}249295665411013282046029
reply 0 is 2
reply 1 is 4
reply 2 is 9
reply 3 is 2
reply 4 is 9
reply 5 is 5
reply 6 is 6
reply 7 is 6
reply 8 is 5
reply 9 is 4
reply 10 is 1
reply 11 is 1
reply 12 is 0
reply 13 is 1
reply 14 is 3
reply 15 is 2
reply 16 is 8
reply 17 is 2
reply 18 is 0
reply 19 is 4
reply 20 is 6
reply 21 is 0
reply 22 is 2
reply 23 is 9reply 6 should be 66 not 6.
I'm looking for this list as an array like object of some sort.
Mac mini, OS X Yosemite (10.10.5), Fall 2014; iPhone 4 7.1.2