In Firefox, this works:
It would alert you of all the keys in the object. It fails in IE though and Google results only return object oriented stuff.
Any ideas as to IE equivalent of this type of loop? If not, is there a built-in method in the Object class that will tell you the keys at a particular index?
---------------------------------------
TINSTAAFL, which is why I contribute.
Code:
for ( var key in obj )
alert( key );
It would alert you of all the keys in the object. It fails in IE though and Google results only return object oriented stuff.
Any ideas as to IE equivalent of this type of loop? If not, is there a built-in method in the Object class that will tell you the keys at a particular index?
---------------------------------------
TINSTAAFL, which is why I contribute.