wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes 2 dimensional array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "2 dimensional array" Watch "2 dimensional array" New topic
Author

2 dimensional array

indu yeturu
Ranch Hand

Joined: Aug 27, 2008
Posts: 123
Am creating a simple dynamic table like this,

and I created dynamic 2 dimensional array because I need to push the elements of the above table into particular arrays based on the [row,column] indices.
For that my code is ::::


Here am trying to display the value of each element,but it displays as 'undefined'.... What is the way to print the values of elements here?
thanks
indu
>


thanks,
indu
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You never assigned it a value so it is undefined. What would you expect it to alert?

Eric
indu yeturu
Ranch Hand

Joined: Aug 27, 2008
Posts: 123
There am expecting the value of the cell[i][j] where


i = 0 to rowlength
j = points to columns in the table(name,columns) j=0 to no.elements in the table;
no.of elements in the table is elements

The sample HTML :::



Sothat I tried to alert the values of the elements which I entered at specific row,column locations

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
And how are you sticking those values into the newly created arrays? You sample code shows nothing but creating arrays and alerting an empty cell.

Eric
indu yeturu
Ranch Hand

Joined: Aug 27, 2008
Posts: 123
Thanks I got it..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 2 dimensional array
 
Similar Threads
dynmicall adding row
need help in dyanmically adding drop down box
getting reference of dynamically created field
DHTML elements not getting printed
deleteing rows and storing row(text box) values in javascript