J
Jane Here
I am trying to understand how Java script works. Can someone help me with
this hopefully straightforward example:
I want one page to display different text. I want to put the text into two
separate arrays.
Array 1:
---------
aContent[0]=Fruit salad
aContent[1]=Vegetable pack
....
aContent[21]=Meat trays.
Array 2:
----------
aType[0]=Apples
aType[1]=Carrots
....
aType[21]=Beef.
Note: For the purpose of this example, I want the arrays to be separate.
Now on the page I want these buttons:
----------------------------------------------
(F)irst (P)revious (N)ext (L)ast
and these outputs: Display_Contents Display_Type
Initial display show --------------------------------- Fruit
alad ---------- Apples
User clicks (N)ext.
Counter gets incremented by 1
So display now shows: ---------------------------- Vegetable pack --------
Carrots
How would I accomplish this in Java script?
(I'm using FP2003).
this hopefully straightforward example:
I want one page to display different text. I want to put the text into two
separate arrays.
Array 1:
---------
aContent[0]=Fruit salad
aContent[1]=Vegetable pack
....
aContent[21]=Meat trays.
Array 2:
----------
aType[0]=Apples
aType[1]=Carrots
....
aType[21]=Beef.
Note: For the purpose of this example, I want the arrays to be separate.
Now on the page I want these buttons:
----------------------------------------------
(F)irst (P)revious (N)ext (L)ast
and these outputs: Display_Contents Display_Type
Initial display show --------------------------------- Fruit
alad ---------- Apples
User clicks (N)ext.
Counter gets incremented by 1
So display now shows: ---------------------------- Vegetable pack --------
Carrots
How would I accomplish this in Java script?
(I'm using FP2003).