You say your loop is going the correct amount of times, but have you
checked the array?  Try looping over the array and tracing all the
elements (along with the length of the array).  Does what you get
match what you expect?

  -Andy

On Feb 5, 2008 11:45 AM, Lehr, Theodore M (N-SGIS)
<[EMAIL PROTECTED]> wrote:
> I am populating a datagrid via:
>
>
>
>   data_array = new Array();
>
>   for (j=0; j<this.firstChild.childNodes.length; j++) {
>
>     var lessonTitle:String =
> this.firstChild.childNodes[j].childNodes[0].firstChild.nodeValue;
>
>             var desc:String =
> this.firstChild.childNodes[j].childNodes[1].firstChild.nodeValue;
>
>             data_array.push({AvailableLessons:lessonTitle,
> Description:desc});
>
>   }
>
>   dg.dataProvider = data_array;
>
>
>
> The loop is looping the correct amount of times but my grid is ending up
> with an extra empty row. Any ideas why?
>
>
>
> Ted
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to