Forum Moderators: open

Message Too Old, No Replies

Help about making output

         

orion_rus

10:36 am on Jan 3, 2005 (gmt 0)

10+ Year Member



Hello world i need to make mechanizm:
It should make output of array in the table, it can construct object with pages, if i select a second page he hides previos page and show another. May be somebody already make something like this? It could be very helpfull to me)
Thank you very much

adni18

3:17 pm on Jan 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If I'm deciphering you correctly, you want to display the contents of an array in a table. You also want the table to be re-filled with different contents, based on the user's selection. Please correct me if I am wrong.

How do you want to display your info, in the tables?
Please choose from the following, or give an alternative.

array=new Array("Animal","Frog","Color","Green","Type","Amphibian");

Model 1:

[table]
[tr][td]Animal[/td][td]Frog[/td][/tr]
[tr][td]Color[/td][td]Green[/td][/tr]
[tr][td]Type[/td][td]Amphibian[/td][/tr]
[/table]

Model 2:

[table]
[tr][td]Animal[/td][td]Color[/td][td]Type[/td][/tr]
[tr][td]Frog[/td][td]Green[/td][td]Amphibian[/td][/tr]
[/table]

orion_rus

4:17 pm on Jan 3, 2005 (gmt 0)

10+ Year Member



) it seems no much difference between it)
i would like to use two arrays
1 array - table headers
2 multi array - array with variables and onclick functions.
and if second array have more then (for example) 50 elements, i need make select output there i can give him a choose which page he want to show?
my english poor( sorry. If i'm not clear yet, i can try to describe it with another words

adni18

4:22 pm on Jan 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hmm...perhaps it would be best if you could give me an example of your arrays.