SarahKate31
Programmer
hi - so here is my issue:
on my first page, i am saving info into a 2 dimensional array which is stored in a hidden frame in my frameset. then i am accessing that array from my second page. if i try to access the array elements individually (array[1][2]) there is no problem. the information was stored and i can get to all of it. but when i tried to alert the entire array, the alert said: [object]. so for some reason i cannot reference the array as a whole, or even by the 1st dimension (array[0]), i can only reference it if i go to the very last level. the problem is that i want to sort the array and since it is not being recognized as an array but as an object, the .sort() is throwing an error. No other array methods will work on it either. Any idea why it is not being recognized as an array even though it clearly is since it does contain the data?
thanks - kate
on my first page, i am saving info into a 2 dimensional array which is stored in a hidden frame in my frameset. then i am accessing that array from my second page. if i try to access the array elements individually (array[1][2]) there is no problem. the information was stored and i can get to all of it. but when i tried to alert the entire array, the alert said: [object]. so for some reason i cannot reference the array as a whole, or even by the 1st dimension (array[0]), i can only reference it if i go to the very last level. the problem is that i want to sort the array and since it is not being recognized as an array but as an object, the .sort() is throwing an error. No other array methods will work on it either. Any idea why it is not being recognized as an array even though it clearly is since it does contain the data?
thanks - kate