how do i make a text-file loaded array of points global?

0 views
Skip to first unread message

Tariq, admin@prayinjamat.com

unread,
Nov 1, 2007, 8:40:14 PM11/1/07
to Google Maps API, prayinjam...@googlegroups.com
bismillah. IN BRIEF: if i use a function nested in my "load" function
to load an array of data points from a text file, will that data be
available outside my "load" function?

the load function does not use the data, but loading the data then
seems like a good use of time. i have separate functions that move
the map center via a form. and i have event listeners that WILL use
the data points to add or remove points from the map as necessary.

that made me think the data array has to be global... and i am not
sure if my data will be...

all advice welcome!

i've gotten this far: http://prayinjamat.com/tester/LJamatAlpha1.html

[to compare code with the current site, http://prayinjamat.com/LJamat00001.html
-- here all data is stored in an array that is part of the html. this
code works fine, alhamdolillah.]

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages