Re: loop over a dynamic structure

2004-08-02 Thread S . Isaac Dealey
No functions, but there is syntax for it... for (i in attributesScope) { alert(i + ' = ' + attributesScope[i]); } hth s. isaac dealey 954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?story

Re: loop over a dynamic structure

2004-08-02 Thread John mccosker
Its ok folks I found the solution on devedge, function objectEnumeration(){ var result=""; for (var i in attributesScope) { result += "attributesScope" + "." + i + " = " + attributesScope[i] + ""    }    result += "" ; alert(result); } [Todays Threads] [This Message] [Su

loop over a dynamic structure

2004-08-02 Thread John mccosker
Hi, I have a coldfusion structure which I serialise from wddx to _javascript_, however the structure is random and I need to know how I can dynamically loop over this structure to get at the data without knowing the keys, is there functions in the _javascript_ or dom api to do this, I can't find