|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Google Discussion Forum Google Discussion forum is for topics specifically related to Google. There is a subforum dedicated to AdSense/AdWords subjects. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Any idea why when I add target="_blank" to the link code into Google Map
balloons it disappears? I am trying to make it so the links inside the balloons open in a new window, because it is not ideal to open a page in the small map window. Not sure if their are many Google Maps pros out there. Here is the map I created and embedded on my clients website: Hawaiian Pool Builders Swimming Pool Directory for Ohio and Michigan Thanks for your help. |
|
||||
|
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 |
|
||||
|
I briefly looked through the new MyMaps feature of Google Maps and cannot find any settings or options that allow a target to be set for the links within the map.
I am used to using the Google Maps API which is more flexible than the MyMaps, but obviously much more difficult to use than MyMaps. Depending on the complexity of your map requirements, you may want to look into using the API as opposed to the MyMaps interface. Failing that, there may be some HTML/JS trick to assign a target to the IFRAME itself. Setting a base target on your main page won't translate to the IFRAME, and the W3C spec does not allow for a target parameter within an IFRAME tag, so offhand I am not sure how to accomplish that, either. Perhaps there is a way to create a JavaScript object from the IFRAME and assign a target to it? Hope that helps. ~D
__________________
MODPlug Central | Free Music Software StudioKraft | Ecommerce Web Site Development |
|
||||
|
I don't suppose you have a link to documentation for creating MyMaps maps do you? I did a few searches but couldn't find anything. Not sure if I need an account first or something.
__________________
The best way to learn anything, is to question everything. |
|
||||
|
Now why couldn't I find that...
Anyway, I set up a test map and entering the points manually I was able to get it to accept the target="_blank" attribute. However they strip that tag when you log out. I think that this falls into their "suspicious tags" definition. Best thing I can think to try is using a javascript instead.
__________________
The best way to learn anything, is to question everything. |
|
|||
|
I don't know if this is any help to you, but if you look at
Map of Cartama, Malaga, Andalucia the balloon on the left has a link to another site, which opens in another tab. The whole page is created from a database. If there is anything there that you want to use, or need clarification on, please ask.
__________________
Pete Clark Got any spare time? Anything you need? Barter in Spain at http://BarterWithBart.com Last edited by computergenius; 08-28-2007 at 06:59 PM. Reason: spelling error |
|
|||
|
Quote:
You seem to be determined to do it the hard way (:-> You say "using My Maps is a lot easier, especially for the client to manage" - what is it that you want the client to be able to do? And when you say client, I assume that you been the website owner?
__________________
Pete Clark Got any spare time? Anything you need? Barter in Spain at http://BarterWithBart.com |
|
|||
|
I did that somewhere, a project that is "going to be finished one day". I will see what I can find, although I am not sure what the site owner could do - I know that they could slide a balloon around, and activate it, but I am not sure what else.
It works through a control panel page, and changes the data in a SQL database. All my pages on Hot Costa are built from databases. Would that be any help to you?
__________________
Pete Clark Got any spare time? Anything you need? Barter in Spain at http://BarterWithBart.com |
|
||||
|
Well I just tried this Javascript method:
Code:
Click here for the <a href="http://www.hawaiianpoolbuilders.com/adrian-pools.html" onclick="return !window.open(this.href);">Adrian, Michgan Swimming Pool</a> page. |
|
||||
|
KML is a file format used to display geographic data in an Earth browser, such as Google Earth, Google Maps, and Google Maps for mobile. KML uses a tag-based structure with nested elements and attributes and is based on the XML standard.
GoogleMapBuilder, a spreadsheet-to-map utility. The first DIY tool on the web that allows you to create an interactive Google Map on your website with "point-and-click" ease. Google Mapplets are mini-applications that you can embed within the Google Maps |
|
|||
|
I see, you want them to re-code the page(s).
In my solution, they fill in boxes on screen, (like the one that I am filling in now <G>), the pre-written code puts the data into a database, and the page displays information from the database. Different to what you are doing, obviously.
__________________
Pete Clark Got any spare time? Anything you need? Barter in Spain at http://BarterWithBart.com |
|
||||
|
I'm not sure if the way you're doing it it would be possible to do this but i added css to my google map to make the text and box smaller so it fitted better on my page as my map was about the same size as yours
|
|
|||
|
Hi all!
Incredible, I use this jscript to open in a new window: onclick="this.target='_blank';" I'm no jscript wizard, so this may not work for you. Also, I tried to use the MyMaps function this morning and for the location I was needing, it displayed a different location on google maps site than was displayed using the scriptlet it generated for me. Bogus data somewhere. I'll try the API. Peace
__________________
"Contentment is a quality best suited for cows - not cowboys" -- Jimmy Buffet |
|
||||
|
The more I play around with this, including using a few different variations of javascripts, and also after reading through a lot of Google Groups posts on the issue, it seems that Google has put filtering code in to disallow any javascripts or target tags. They seem to filter out automatically when the page is saved, probably to force developers to use the API.
__________________
The best way to learn anything, is to question everything. |
|
||||
|
I don't know about that - actually seems pretty clever to me. It gives the casual user who just wants a simple map on his or her web page with an easy-to-implement solution, while forcing anyone who wants a more complex solution (and is likely to generate more bandwidth and eventually need additional capabilities) to use the API right from the start, where Google can implement more bandwidth controls, and ensure that the developer won't get frustrated in the future when they eventually migrate to the API when they can get frustrated today implementing it now.
__________________
The best way to learn anything, is to question everything. |
|
||||
|
Did you already try using this? The Perfect Pop-up (creating accessible pop-up windows) | Tutorials | Accessify
__________________
"Being an expert isn't telling other people what you know. It's understanding what questions to ask, and flexibly applying your knowledge to the specific situation at hand. Being an expert means providing sensible, highly contextual direction." Jeff Atwood SEO Workers - Search Engine Optimization Consulting Company | SEO Analysis Tool | Webnauts Net SEO |
|
||||
|
It seems that the only attribute Google is allowing in a link tag is href, and only keeping the href if it contains a URL. Not only does there seem to be no way to add javascripts, it does not seem possible to add a rel attribute either.
__________________
The best way to learn anything, is to question everything. |
|
||||
|
I dont know if this will help you or not but I use <A HREF="http://your-site.com/ In my Sites for it to use other windows.I dunno if you like to use Java or if you can use it or not..Just thought I'd try..
|
|
||||
|
Well I was gonna offer my solution but it wont save it the way I type it.so if u wanna no how I think it would
work,then feel free to email me. my info is in my profile thru msn messenger.. Last edited by Graphix-Effectz; 09-06-2007 at 04:57 AM. Reason: its not saving it the way i type it. |
|
||||
|
As first noted at Remote Sensing Tools it seem Google MyMaps balloon links are now opening in a parent window. Yeah for Google as they have fixed their own problem with enough crying from me!
|
|
||||
|
Have you been here already? Developer Knowledge Base - Tutorial: Creating Your First Map
__________________
"Being an expert isn't telling other people what you know. It's understanding what questions to ask, and flexibly applying your knowledge to the specific situation at hand. Being an expert means providing sensible, highly contextual direction." Jeff Atwood SEO Workers - Search Engine Optimization Consulting Company | SEO Analysis Tool | Webnauts Net SEO |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| When does "similar" = "duplicate content" for Google? | zwickes | Google Discussion Forum | 4 | 05-31-2007 11:57 AM |
| Don't Forget To Target "Out-of-context" Leads | jmiller | Marketing Strategies Discussion Forum | 0 | 10-16-2006 01:39 PM |
| google: "link to" and "content contains" | truelysam | Google Discussion Forum | 0 | 12-23-2004 11:49 PM |
| Is Google "SECRETLY" Using "DirectHit" T | ~0 | Google Discussion Forum | 0 | 10-22-2004 10:26 PM |
| Using javascript instead of target="_blank" | carbonize | Graphics & Design Discussion Forum | 1 | 11-29-2003 08:55 PM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |