Hi list,
one simple question:
I want to define an object like:
var test = {
"abc" : {
"test1" :{
},
"test2" :{
}
},
"myTest" :{
"x1" : {
}
}
}
That is just an example ;) .
Now I want to use variables instead of real text for the
identifiers....is this possible?
Of course I could make it like:
var test = {};
var var1 = "abc";
var var2 = "myTest";
test[ var1 ] = {
"test1" :{
},
"test2" :{
}
};
test[ var2 ] = :{
"x1" : {
}
}
But this is not really how I want to make it.
Is there no other way to use variables for identifiers?
I'm sure some of you JS-Gurus can help me here ;)
Thanks
Tobias
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel