i've embeded google maps on my site with a marker setup were i wanted, but i cannot use "Get directions" to open in the same div that i use. Is it possible to do that, or my only options are _blank, _self etc.

<script src="http://maps.google.com/maps?file=api&v=2&sensor=true&key=ABQIAAAAsoAP0MDLt21HBpoCAZ0DLBQD344IlC21WoKHBucdD45AbVnqaxQoNHNKFtJHrVaqBr2Dwfh1G1O2-g" type="text/javascript"></script>

<script type="text/javascript">
function initialize() {
	if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
		var point = new GLatLng(45.595513, 25.554714);
        map.setCenter(point, 6);
        map.setUIToDefault();
		map.setMapType(G_NORMAL_MAP);
		var marker = new GMarker(point);
 		map.addOverlay(marker);
		GEvent.addListener(marker, "click", function() {marker.openInfoWindowHtml('<h4>Silver Mountain</h4><img src="images/googlemaps/silvermountain_small.jpg" alt="" width="90" height="72" border="0"><br><a id="map_canvas" href="http://maps.google.com/maps?saddr=&daddr=' + point.toUrlValue() + '" target ="_self">Get Directions<\/a>');});

	}
}
	
window.onload = initialize;
window.onunload = GUnload;

</script>

if you have _self available as a target, you could use that probably.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.