On Wed, Jun 15, 2011 at 3:27 PM, jay K. <jay.developer2...@gmail.com> wrote: > Hello, > > I've posted my question before, but I believe I didn't provide enough > detail. I intend to present my issue again, this time with more > detail. > >... > > Now, I manage to see the output of the javascript written above > through Firefox's "View - Page Source" and it comes up like this > > //BEGINNING > var city_schools = ["EC","St. Giles Central","St. Giles Highgate"]; > > var city_latitudes = ["58","88","25"]; > > var city_longtitudes = ["7","99","100"]; > > //END > > > I have a separate javascript file where I add the code for the google > map. What I want to do is to be able to access each of the > city_schools, city_latitudes, and city_longitudes and use its data to > I can mark the schools inside a google map. It would be ideal if I > could retrieve the info as if it was a js array, but any method that > works is more than welcome
Probably no-one answered because your question is still vague. I've read it twice and I can't see what you are asking. You have generated JS data in arrays, so access it? Are you really asking 'how do I set JS variables in the HTML source, and access them from a separate JS file?'? Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.