JAVASCRIPT: Iterating through objects, the easy way


Objects in any ECMAScript language (Javascript, Actionscript, Jscript, etc) are very powerful for - among other things - storing data. However, getting some information out of these objects can be a hassle sometimes.

I ran into this issue recently and wrote some cool little handlers for objects. The following methods can be used to iterate through an array manually. I wrote them for Actionscript, but they certainly work for Javascript - although I’d suggest one small modification (shown later).

Previous Articles

JAVASCRIPT: onerror image magic


JAVASCRIPT: Internet Explorer’s attachEvent breaks ‘this’


LEARNING: 2008 monthly plan updated


LEARNING: 2008 monthly plan


JAVASCRIPT: Method overloading


JAVASCRIPT: Creating objects and methods


FLASH: Recursively parse XML into an array


Welcome to Mellentine Design

Thank you for taking the time to visit my blog! Take a second to peek around and check out some of my previous posts. Of course, I would love to find out what you think as well, so make sure to comment. See you around!

Subscribe via e-mail


Delivered by FeedBurner