use prototype-1.6.0.3
code
var array = [];
console.log('length: ' + array.length);
for(var i in array) {
console.log('key: ' + i);
console.log('val: ' + array[i]);
}
/ code
result
length: 0
key: each
val: function (iterator, context) { ... }
key: eachSlice
val:
for. More
here:http://proto-scripty.wikidot.com/prototype:tip-looping-through-arrays
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jun 10, 3:15 am, favril hsanog...@gmail.com wrote:
use prototype-1.6.0.3
code