If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Been a while I know, but I could do with some help. I'm not sure if this is possible within js but I want to stick arrays within an arrays, retrive a specific array and display it. This current code returns puzzleHolder as undefined. Any idea why?

The probelm I'm having is the if statments don't work. I think I could fix this myself except that this is a very bad way to do it. Any suggestions on other ways of doing this? eg. every 9 objects in the array move onto the next row.

As you can see each row should be populated by elements with a certian Id. The problem I think is that these rows aren't being populated. They can't find the Id's. This makes no sense to me, but in my mind it's the only conclusion. I say this beacuse I've treid to find out the length of the row_1 and it keeps getting returned as undefined. Please guys any help?

Then it's easy to find the cell at the 7th row and 2nd col (our rows and cols are 0,1,2,3,4,5,6,7,8). Its id is "cl55" (55=(7-1)*9+(2-1)) !
It's to easy to place input type text (without border) in cells to allow new data...

Then it's easy to find the cell at the 7th row and 2nd col (our rows and cols are 0,1,2,3,4,5,6,7,8). Its id is "cl55" (55=(7-1)*9+(2-1)) !
It's to easy to place input type text (without border) in cells to allow new data...

Trust me I wish I could do it this way, my professor gave us a very strict breif. If I could I would do it your way becuase it would days of work. Btw I solved it. The problem was that getElementbyId only returns one element. Not multiple like any of the others. Pretty dumb, but I preserverd and now i have a class that acts as an id for each row. The only problem being now the generation for loop has stopped working.

For some reason i never goes past 9. I've checked each of the parameters in the for loop and it should be going to at least 81. The problem I think lies in that the row's can only go up to 9 and becaue of that the function refuses to go futher. I've treid if statements, but they only work on the first row (first 9). If I am right any ideas how to solve this problem.