It's very frustrating sometimes not knowing how very simple things work. I'm trying to get the element count of the data in a portion of my RestService from an xml.
In JS of success I setup and could get results as so:
codewindow.nData=data.Main.xnode.xxnode;
window.introData=data.Main.intro;/code
Though nData and introData are both accessible, none of these would give the count of the nodes for iteration:
codevar count = data.introData.length;
trace(introData.length)/code
Both yielded "Undefined"
codealert($('[dsid=introData]').length);/code //gives 0