OK....I started all over....... (^%(@^&%#^%#$)  :o)

If anyone that can figure out what's goofing this up, I'd be most
appreciative!  It's driving me crazy!
I started with this as my base: 
http://www.geocodezip.com/mapXmlTabsDirections.asp
and am trying to add a select box from this example:
http://econym.org.uk/gmap/example_map15c.htm
and can't get the select box to show...
my url:  http://www.sgitest.com/nw_over_crimson.htm


I added the following to the geocodezip  map:
[in the body]
    <!-- ====== this div will hold the select box ==== -->
    <div id="selection"></div>
    <!-- ============================================= -->


[in the javascript...]
// ==== first part of the select box ===
                var select_html = '<select
onChange="handleSelected(this)">' +
                '<option selected> - Select a location - <\/option>';
// =====================================

[added to global variables...]
      var htmls = [];
      var i = 0;

[added to function createTabbedMarker]
// ======= Add the entry to the select box =================
        select_html += '<option> ' + name + '<\/option>';
// ==========================================================

[added to java script...]
// ======= This function handles selections from the select box ====
      // === If the dummy entry is selected, the info window is closed
==
        function handleSelected(opt) {
        var i = opt.selectedIndex - 1;
        if (i > -1) {
          GEvent.trigger(gmarkers[i],"click");
        }
        else {
          map.closeInfoWindow();
        }
      }

[added to function getXMLfile]

// ===== final part of the select box =====
                select_html += '<\/select>';
                document.getElementById("selection").innerHTML = select_html;

heeeeeeeeeeeeeeeelp..............
[I'm trying Andy -- thanks for all your help so far...:o) ]

On Nov 6, 11:04 am, Andy R <[EMAIL PROTECTED]> wrote:
> Remove the ) in line 322, and check your HTML code. There are two
> <body> tags
>
> // ==== final part of the select box ===========================
>         select_html += '<\/select>';
>         document.getElementById("selection").innerHTML = select_html;
>       }); <--- Syntax error
>
> On 6 Nov., 15:36, syd636 <[EMAIL PROTECTED]> wrote:
>
>
>
> > Thanks Larry!
>
> >  I added the piece you pointed out that I had forgotten and am still
> > having trouble -- now the api doesn't like it at all.
>
> >http://www.sgitest.com/nw_over2.htm
>
> > On Nov 5, 8:01 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > wrote:
>
> > > On Nov 5, 2:37 pm, syd636 <[EMAIL PROTECTED]> wrote:
>
> > > > My select box won't show up.  If anyone has time to look at it and
> > > > help me, I would be very thankful!  :-)
>
> > > >http://www.sgitest.com/nw_over2.htm
>
> > > Have you written any code to display it?
>
> > > You create a string called select_html, but best I can tell you never
> > > do anything with it.
>
> > >   -- Larry- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to