Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Quaye Trimble Newsgroups: comp.lang.javascript Subject: can not reference javascript object Date: Thu, 19 Jan 2012 06:18:08 -0800 (PST) Organization: http://groups.google.com Lines: 15 Message-ID: <11050240.2077.1326982688373.JavaMail.geo-discussion-forums@vbgr9> Reply-To: comp.lang.javascript@googlegroups.com NNTP-Posting-Host: 199.120.31.18 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1326982688 7868 127.0.0.1 (19 Jan 2012 14:18:08 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 19 Jan 2012 14:18:08 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=199.120.31.18; posting-account=GftcCAkAAAD2Ru5YKvsmaPiNpXyI4AjZ User-Agent: G2/1.0 X-Google-Web-Client: true Xref: x330-a1.tempe.blueboxinc.net comp.lang.javascript:10390 http://bccmws.coastal.edu/enteroview/report_test.php I've designed an application that displays water quality parameter data. One way I'm displaying this data is through a geographic trend map which is were the google maps api comes into play. The number of parameters on display can vary. For this reason I call a javascript function within a php loop that passes a given parameter and iteration index to the javascript function which creates the map. The map is rendering but I'm running into problems resizing the map b/c of the known issue with using display none css property. Based on this method, my map variable is overwritten each time the function is called. I would use a global map variable but I have no idea how many different maps there will be because it varies depending on what the end user wants to see. With that said, how am I to reference the map object?