WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 JavaScript Structs, Martin Walter, June 13, 2004
     Re:JavaScript Structs, Erik Arvidsson, June 13, 2004
         Re:JavaScript Structs, s, August 25, 2004

Subject: JavaScript Structs From: Martin Walter Date: June 13, 2004

Hello!

I consider myself being pretty experienced with JavaScript and it's OOP techniques.

In some of the applications (eg. XTree), the programmers use some kind of Struct as known in C/C++. Example:

Images = {
  L : 'L.gif',
  T: 'T.gif'
};

This ability has been new to me.
My question: How can I iterate through the values of the Struct?
The Problem: for (i in Images) alert (i); // only alerts L, T!

Thanks,
Martin




Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX