I have an array of values, variable length. I'm writing a bookmarklet to make a task simpler and I'm having an issue with the way Firefox is reading the array. Internet Explorer (8) works fine.
Basically, let's say my first array element is this:
myArray[0] = "value1",
Calling up the value should look like this:
myArray[0];
In IE that would return "value1". In Firefox it's returning the number 0. This is causing the next line to error, since it's expecting a value. I tried doing:
alert(myArray):
And it returns this in Firefox:
0,1,2,3,4,5,6,7,8,9,10,11
IE returns the actual values. Is there something I'm missing here? I need the code to work in both, but I just can't figure it out.