Hi I have a page containing three arrays. I would like to create a fourth array, containing the contents of the other three – which will then be sorted.
This part i can do. The trouble is, the original three arrays are named dynamically, so i cannot reference them directly in my code. The saving grace is they all start with the same name. Each one then has a number dynamically appended to it.
Therefore i guess my question is this. Is it possible to loop through every array on a page? If it were a form i was dealing with, not an array, i would do something like this.
[code=html]pageForms = document.form.length
for (x=0; x<pageForms x++) {
do somthing
}
I would have thought i could use pageArrays = document.Arrays.length, but this doesn’t seem to work.
Does anyone have any other ideas?