> I have a JSON object ...
>
> {"Result":"1","UniqueID":"5","Username":"Chrome","Email":"************","LastLogin":"Monday,
> 14<sup>th<\/sup> September 2009 at 10:28
> AM","ContractID":"0","Password":"************","Rights":{"Disabled":false,"UserAdmin":false,"ReportAdmin":false,"RunReports":true}
>
> To iterate the Rights, I use ...
>
> $H(o_JSONUser.Rights).each
> (
> function(h_Right)
> {
> $('tabUA_Rights' + h_Right.key).checked = (1 ==
> h_Right.value);
> }
> );
>
> So, I would say you have to turn the "object" to a "Hash" for each()
> to work on it.
>
Thanks for your time on this Richard, I'll go with $H() then and
change existing code to use this.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---