Guest_imported
New member
- Jan 1, 1970
- 0
I recently made some dhtml with javascript. I made a function which loads the layer names and the number of layers into an array. This function then calls another one with this code -= openit(layers[length],length); =-
This executes perfectly b/ with the openit function i keep getting an error when i write this -=>
function openit(layers[length],length) {
The error is on the layers[length] entry. I tried only placing "layers" in this area b/ by doing so this only turned the array into a scalar. layers=Home3. and layers[1]=undefined, when layer[1] should = Home1...this should of had a value. Why is this error occuring?
This executes perfectly b/ with the openit function i keep getting an error when i write this -=>
function openit(layers[length],length) {
The error is on the layers[length] entry. I tried only placing "layers" in this area b/ by doing so this only turned the array into a scalar. layers=Home3. and layers[1]=undefined, when layer[1] should = Home1...this should of had a value. Why is this error occuring?