On Mar 21, 4:41 pm, "[email protected]" <[email protected]> wrote: > 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.i... > > 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.
Actually, it does seem to be doing what you expect (I didn't read the text, silly me "Click Photo to View Property", seems pretty clear, when I do click on the photo and not that text), it opens http://www.elgolfonow.com/external-content2.htm in the same browser window. What do you think it is doing wrong? I see that the _blank is replaced by _self in innerHTML. That obviously doesn't relate to the topic of the post though... so the fact that this is doing what I would expect may not solve your problem. -- 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.
