well, could you show us how your multidimensional array is being
populated? it looks like there is not object that the position you're
looking for-

On Mar 29, 1:04 pm, Tadas J <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a problem with arrays. I am getting data from xml and trying to
> get data to arrays. Here is my code:
>
> ===============================
> var monster = [[[]]];
> ...
> $(this).find('monsters').each(function(id2){
>         monster[pid][id2]['db_id'] = $(this).find('db_id').text();});
>
> ...
> ===============================
>
> When I am alerting the variable it alerts only the first value and
> then stops and in firebug I see this error:
>
> ====================
> monster[pid][id2] has no properties
> [Break on this error] monster[pid][id2]['db_id'] = $
> (this).find('db_id').text();
> ====================
>
> Maybe I have wrongly defined monster variable?

Reply via email to