Update GDownloadUrl()
<p>I am using a google map with markers and I have a search form above the map. I am trying to get onchange to update the GDownloadUrl() , thus narrowing the markers that load on the page.</p>

<p>Here is what I have tried:</p>

<pre><code>&lt;script type="text/javascript"&gt;
            function load() {
                if (GBrowserIsCompatible()) {
                    var map = new GMap2(document.getElementById("map"));
                    map.addControl(new GSmallMapControl());
                    map.addControl(new GMapTypeControl());
                    map.setCenter(new GLatLng(38.85682, -96.943359), 4);
                    var selector = document.getElementById("sport");
var url = "http://michaelstevens.dyndns.org/athletenation/components/com_athletenation/views/Events/tmpl/xml.php?sport="+selector.options[selector.selectedIndex].value+"";
                    GDownloadUrl(url, function(data) {
                        var xml = GXml.parse(data);
                        var markers = xml.documentElement.getElementsByTagName("marker");
                        for (var i = 0; i &lt; markers.length; i++) {
                            var name = markers[i].getAttribute("name");
                            var address = markers[i].getAttribute("address");
                            var type = markers[i].getAttribute("type");
                            var title = markers[i].getAttribute("title");
                            var id = markers[i].getAttribute("id");
                            var point = new GLatLng(parseFloat(markers[i].getAttribute("lat")),
                            parseFloat(markers[i].getAttribute("lng")));
                            var marker = createMarker(point, name, address, type, title, id);
                            map.addOverlay(marker);
                        }
                    });
                }
            }
            &lt;/script&gt; 
</code></pre>

<p>Link to page: <a href="http://michaelstevens.dyndns.org/athletenation/index.php?option=com_athletenation&amp;view=Events&amp;Itemid=3" rel="nofollow">http://michaelstevens.dyndns.org/athletenation/index.php?option=com_athletenation&amp;view=Events&amp;Itemid=3</a></p>
