468,484 Members | 1,543 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,484 developers. It's quick & easy.

Accessing comma separated data from an javascript array object

I have a global array to which I provide data from one function and want to use that data into another function.

i.e. i get the values of sitecode, x and y from function A
siteCode = x = y =

windQueryDataArray = [[siteCode, x, y]];

I want to use this array in function B from which I want to compare value of siteCode with site code value I am getting from another source in function B to match the values of x and y accordingly... how can I do this?


Sample of windQueryDataArray's data is
("KAXA", 92.144, 91.222)

("KCID", 91.111, 93.212)


Thanks in advance!

Piyush
Nov 17 '11 #1
1 1837
acoder
16,027 Expert Mod 8TB
Firstly, you need to access the sitecode value. That would be as simple as
Expand|Select|Wrap|Line Numbers
  1. windQueryDataArray[i][0]
for the ith data point.
Nov 17 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Craig Keightley | last post: by
12 posts views Thread by insomniux | last post: by
2 posts views Thread by pesso | last post: by
7 posts views Thread by Oleg Konovalov | last post: by
2 posts views Thread by Garg | last post: by
2 posts views Thread by gieforce | last post: by
reply views Thread by theflame83 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.