Dynamically update an InfoWindow through a listbox.

64 views
Skip to first unread message

cogdevelopers

unread,
Jun 28, 2012, 11:35:42 AM6/28/12
to google-visua...@googlegroups.com
I have a map where I need to update the contents of the info window after it is opened.
 
What needs to happen is that when a user changes the date in the drop down list, the counts field should update. 
The infowindow are loaded via a kml file. 
Here is the dropdown code: 
      <SELECT id="Select2" onchange="Select2_onchange();" name="Select2">
       <% i = 1 %>
    <% Do While Not rs3.EOF %>
            <OPTION value="<% = i %>"><font face="Arial, Helvetica, sans-serif" style="font-size:9pt"> <% = rs3(0) %></font></OPTION>
    
           <% i = i + 1 %>
           <% rs3.MoveNext %>
    <% Loop %>
   </SELECT>
 
and here is the jacscript function:
 
 function Select2_onchange()
 { 
 var id = document.getElementById('hiddenid').value;
 var mydate = document.getElementById('Select2').value;
 
 window.location = "http://www.nctcog.org/trans/data/trafficcounts/gettrafficcounts2.asp?id="+id+"&mydate="+mydate
 }
 
What I'm trying to do is call back the page that builds the kml file.
 
However that page itself is called from the main page in the first link.  Right now it isn't doing anything, so I'm wondering how would I implement that?

asgallant

unread,
Jul 11, 2012, 4:27:18 PM7/11/12
to google-visua...@googlegroups.com
You're asking in the wrong place - we deal with the Visualization API here, not Google Maps.  Try over here: https://groups.google.com/forum/#!forum/google-maps 

On Wednesday, July 11, 2012 3:20:50 PM UTC-4, cogdevelopers wrote:

anyone?
Reply all
Reply to author
Forward
0 new messages