On Mar 21, 4:01 pm, Jim Vleck <[email protected]> wrote: > Larry: > > Thank you very much for taking a look at my code. The code I included > to change the target of the ballon link is in the main page and is: > > GEvent.addListener(map,"infowindowprepareopen", function(iwtabs) { > iwtabs[0].contentElem.innerHTML = > iwtabs[0].contentElem.innerHTML.replace("_blank", "_self"); > });
Didn't notice that. However I don't see that event in the documentation, only infowindowopen: http://code.google.com/apis/maps/documentation/reference.html#GMap2.infowindowopen But it does seem to fire. I can append a link that works to the innerHTML, maybe the .replace isn't working the way you expect. -- Larry > > I appreciate your assistance and will take a look at the other parsers > you mentioned. Please don't hesitate to comment further. > > Best Regards, > > Jim Vleck > > At 11:00 AM 3/21/2010, you wrote: > > > > >On Mar 21, 9:07 am, beachjim <[email protected]> wrote: > > > I am really stumped on how to get a link in a KML (Google Map) file to > > > trigger a modal window. I have a test page setup at: > > > >http://www.elgolfonow.com/indexmap.html > > > > I did see how to change the target of the link in the balloon which is > > > in the "description". I have added that code to the Google javascript. > > >Where have you added that code? I don't see it. > > > > The same code I use on the button on the page to trigger a modal is > > > the same code I used in the KML file in the "description" tag. > > >I don't see any code in the KML file. But any javascript there will > >be stripped out by GGeoXml. You may need to investigate the third > >party parsers: > >http://econym.org.uk/gmap/egeoxml.htm > >or > >http://www.dyasdesigns.com/geoxml/ > > >BTW - this line gives an error: > > var marker=new GMarker(marker); > > >because marker is undefined (and it is not a GLatLng, which GMarker > >requires as its first argument).. > > > -- Larry > > > > Still stumped and any ideas or assistance would be greatly > > > appreciated. > > > > Best, > > > > Jim > > >-- > >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. > > Jim Vleck > Chief Technology Officer > OCEAN VOYAGE sales performance agencyhttp://www.oceanvoyage.com > 800 357-1299 Ext. 6 > 858 922-6023 Cell -- 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.
