View Single Post
Old 01-23-2013, 12:03 AM   PM User | #1
korssane
Regular Coder

 
Join Date: Jun 2011
Posts: 148
Thanks: 18
Thanked 0 Times in 0 Posts
korssane is an unknown quantity at this point
getting error with array of array element value

Hi Guys ,

i have an array with the following structure:


data:
[
[1807,1807,"name1","Test1"],
[1807,1807,"name2","Test1"],
[1807,1807,"name3","Test1"],
[1807,1807,"name4","Test1"],
[1807,1807,"name5","Test1"],
[1807,1807,"name6","Test1"]
]


Iam trying to get the value

var pr_id = res.data[i][1];

if i replace "i" with a value this will work in both chrome and IE8 with no error. But as soon as I use my index "i" , this works in chrome but not in IE.
I have the following error :



Code:
Message: 'data[...].1' is null or not an object
Line: 354
Char: 16
Code: 0
Any help?

Thanks
korssane is offline   Reply With Quote