View Single Post
  #2 (permalink)  
Old 08-28-2007, 12:32 AM
carpediem's Avatar
carpediem carpediem is offline
WebProWorld Pro
 
Join Date: Oct 2006
Location: StudioKraft Creative Services
Posts: 110
carpediem RepRank 3carpediem RepRank 3
Default Re: target="_blank" Google Maps

Hi Incrediblehelp,

Glancing at the code, it looks as though there is a Google Map embedded in an IFRAME on the page. This would require the use of target=”_top” to draw on the parent page, or as you have suggested, target=”_blank” to open another window/tab.


The Google Maps code itself is obfuscated, and is difficult to look through – it appears as though some sort of map generator was used to create it.
Typically, markers are added to maps using the following javascript:

var marker = new GMarker(point);
map.addOverlay(marker);

marker.openInfoWindowHtml(‘<a href=”url” target=”_blank”>Link</a>’);

Where “map” is the Google Map object. The JavaScript code seems to be using arrays to define the points, so there may not be a mechanism built-in to add the target parameter to the link URLs.



Hope that helps!



~D
__________________
MODPlug Central | Free Music Software
StudioKraft | Ecommerce Web Site Development
Reply With Quote