quote:
Originally posted by Timma
code:
for (i = 0; i <= textray.length; i++){
Change that line to either
code:
for (i = 0; i < textray.length; i++){
or
code:
for (i = 0; i <= textray.length-1; i++){
Array.length gives the number of items +1, so when it reaches this number in the loop you've come to an array item that doesn't exist, hence the 'undefined' error. At least, that's my understanding of it
Hope this helps