Thank you so much Radina, I got it to work (I've just started with
javascript and google maps for about a two weeks and so it's making
more and more sense:) )


http://www.advocacy.ucla.edu/Maps/Assembly_Map.html


On Aug 15, 4:00 pm, Radina <[email protected]> wrote:
> Amelia:
>
> Pay attention to id and function names. Should be unique.
>
> As a first step try renaming as follows:
>
>  <label>Current District Number </label>
>   <select id="searchString2" onchange="changeMap2(this.value);">
>
> function changeMap2() {
>   var searchString2 =
> document.getElementById('searchString2').value.replace("'", "\\'");
>   if(searchString2 == "") {
>     layer.setQuery("SELECT 'geometry' FROM " + tableid);
>     return;
>   }
>   layer.setQuery("SELECT 'geometry' FROM " + tableid + " WHERE
> 'District' = '" + searchString2 + "'");
>
> }
>
> Once you have that working, try to parametrize changeMap and to have
> only one fuction.
>
> Radina
> On Aug 15, 10:04 am, Amelia Griza-Padilla <[email protected]>
> wrote:n
>
>
>
> > Hello,
> > I am trying to create two *dropdownmenus* (would actually like to add a
> > third) that searches for records based off myfusiontables. I am able to
> > get one of the *dropmenus* to work, but once I add the secod *dropdown
> >menu* neither one works. Can anyone give some guidance to what I am missing
> > here?http://www.advocacy.ucla.edu/Maps/Assembly_map.html
>
> > Thanks,
> > Amelia- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to