I solved it.
Typos during debugging can be tricky ^^
and cost me about 1.5h today.

On Jun 4, 7:30 am, worthy456 <[email protected]> wrote:
> Hi,
> somehow I am stuck with the following problem.
>
> var skill = {
>     "1": {
>         ...
>         ...
>         ...
>         "level_dump": [{
>             "id": "1",
>             ...
>             "reqland": "1",
>             ...
>             ...
>         }, {
>             ...
>             ...
>         }]
>     },
>     "2": {
>             ...
>             ...
> ... goes on with the same structure.
>
> What I need is to dynamically call the reqland value.
> I tried using this:
>
> skill[id].level_dump[cur_lvl].reqland
>
> and debugged the values of both id and cur_lvl twice to be correct,
> but an error is coming up in the firebug console telling that skill
> [id].level_dump is undefined.
>
> The strange thing is, if i manually enter skill[1].level_dump
> [0].reqland, then the correct value "1" is shown without any error.
>
> Maybe someone knows how to fix this, or point me in the right
> direction.
>
> Best regards,
> worthy456
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to