Javascript will not execute from within the infoWindow without some trickery.
I'd suggest: 1. Load your KML with one of the third party parsers, (geoXml or EGeoXml), so that you can get a handle on individual markers. 2. Create your infoWindow in a separate function and use DOM node cloning, like in this example: http://maps.forum.nu/gm_adsense_infoWindow.html ... then your javascript should execute in the InfoWindow -- Marcelo - http://maps.forum.nu -- On Sep 8, 3:12 pm, jamesct <[email protected]> wrote: > I am generating all the markers in a kml file that gets imported into > a GGeoXML overlay for my map (http://www.capetown-direct.com/ > map.aspx) . > > The problem is that I want a 'Zoom In' link in the InfoWindow popup > for suburb markers, and I have coded this into the > <Placemark><description> tag in the kml as something like <a > href="javascript:zoomin(x,y)">Zoom In</a> but this doesn't work > because apparently JS is blocked in kml files or something. > > (I have of course got a js function zoomin) > > Any suggestions on how to accomplish this (it really shouldn't be so > difficult surely?) > > Thanks, > James --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
