View Single Post
Old 11-19-2012, 05:48 PM   PM User | #7
Goos
New Coder

 
Join Date: Apr 2011
Posts: 45
Thanks: 0
Thanked 11 Times in 11 Posts
Goos is an unknown quantity at this point
Code:
alert(cell.img + ' g');					// will throw an error. // alert(cell.getElementsByTagName('img')[0] == img)
this.row[yCount].appendChild(cell[xCount]);		// cell already points to the current cell. // this.row[yCount].appendChild(cell);
alert(this.row[yCount].cell[xCount] + ' walks');	// idem // alert(this.row[yCount].cell + ' walks');
count++;
xCount++;
}
tbody.appendChild(row);					// you don't have a variable called row // tbody.appendChild(this.row[yCount]);
Goos is offline   Reply With Quote