Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Google and Terms link on map - open in new window?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eric B  
View profile  
 More options Sep 3 2006, 2:19 pm
From: "Eric B" <ebesse...@gmail.com>
Date: Sun, 03 Sep 2006 18:19:33 -0000
Local: Sun, Sep 3 2006 2:19 pm
Subject: Google and Terms link on map - open in new window?
I have a web2.0 app that uses the Google Maps API and takes a while to
load.  I'd really like to have the links for the Google logo and Terms
on the map open in a new window so that if the user clicks on them,
that user won't have to reload my app when he/she goes back to it.  Has
anyone gotten this to work or seen it somewhere?

Thanks,
Eric


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mikeyb  
View profile  
 More options Sep 4 2006, 4:04 am
From: "mikeyb" <mike.be...@stroud.gov.uk>
Date: Mon, 04 Sep 2006 01:04:16 -0700
Local: Mon, Sep 4 2006 4:04 am
Subject: Re: Google and Terms link on map - open in new window?
I agree, this would be a good option to have.

Mike


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
SOL  
View profile  
 More options Sep 4 2006, 8:47 am
From: "SOL" <off...@sol.com>
Date: Mon, 04 Sep 2006 05:47:33 -0700
Local: Mon, Sep 4 2006 8:47 am
Subject: Re: Google and Terms link on map - open in new window?
Hi,
I am struggling with the same problem.
I have been able to solve the problem of opening a link in the same
frame changing
window.top.location to window.self.location in the following part of
script:

        function createMarker(point,icon,gotoURL,name)
        {
                var marker = new GMarker(point, {icon:icon, title:name});
                GEvent.addListener(marker, "click", function()
                {
                        window.top.location=gotoURL;
                });
                return marker;

window.parent.location seems to work as well. (note: top, self and
parent, without "_")
So it seems window.xxx.location understands xxx as the window where to
open, at least the standard terms.
But unfortunately using window.blank.location seems to not only not
open in another window, but even eliminate the link-function.... (also
tried with window._blank.location), let alone trying to open in a
window with a customized name, which is what I try to achieve....


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
warden  
View profile  
 More options Sep 4 2006, 9:01 am
From: "warden" <webmas...@diochi.org.uk>
Date: Mon, 04 Sep 2006 06:01:19 -0700
Local: Mon, Sep 4 2006 9:01 am
Subject: Re: Google and Terms link on map - open in new window?
window.xxx will only work where xxx is an existing window (or a special
one like top, self, etc). If you use a name which isn't recognised, the
call will fail -- and in an event handler, the error will be
suppressed. To open a new window, you need
  window.open(url,name,features,replace);

url is the URL which should go in the new window;
name is the name to give it (to use with the window.xxx reference
later); you can also reference an existing window with its name;
features is the list of screen features like toolbars, status bar, etc.
If you omit this you get a default window;
replace, used with an existing window, specifies whether its history is
to be replaced.

I doubt that this will help with the TOU link, though.

Andrew


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
SOL  
View profile  
 More options Sep 4 2006, 9:21 am
From: "SOL" <off...@sol.com>
Date: Mon, 04 Sep 2006 06:21:27 -0700
Local: Mon, Sep 4 2006 9:21 am
Subject: Re: Google and Terms link on map - open in new window?
Thanks Andrew, but I don't fully understand..
Should "window.open(gotoURL,name);" substitute
"window.name.location=gotoURL; "
Where and how should it be fit in my "function createMarker"  example?
Oh, and the "TOU" link? Sorry I'm a little tired...

Riccardo.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
warden  
View profile  
 More options Sep 4 2006, 9:30 am
From: "warden" <webmas...@diochi.org.uk>
Date: Mon, 04 Sep 2006 06:30:37 -0700
Local: Mon, Sep 4 2006 9:30 am
Subject: Re: Google and Terms link on map - open in new window?
Yes: window.name.location will only work if there's a window/frame
called "name". Using window.open(gotoURL,name) will work all the time,
whether or not it already exists.

In your createMarker, replace
    window.top.location=gotoURL;
with
    window.open(gotoURL,name);
which will show your "gotoURL" page in a window called "name".

That may be a bad example: I don't think I would use "name" because
that might be a reserved word.

My remark about the TOU link referred to the OP: I don't think it's
possible to alter the target of the TOU link.

Andrew


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
SOL  
View profile  
 More options Sep 4 2006, 10:09 am
From: "SOL" <off...@sol.com>
Date: Mon, 04 Sep 2006 07:09:29 -0700
Local: Mon, Sep 4 2006 10:09 am
Subject: Re: Google and Terms link on map - open in new window?
It's not working Andrew :-(
I've tried several alternatives, but whenever I put a name the link
gets lost.
Only window.open(gotoURL) opens the link (in a new window).

You can check the complete source at
http://www.sol.com/maps/default-01.asp
where you can see the different options I've tried.

I must be missing out on something, somewhere, don't I?

Riccardo.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
warden  
View profile  
 More options Sep 4 2006, 10:20 am
From: "warden" <webmas...@diochi.org.uk>
Date: Mon, 04 Sep 2006 07:20:16 -0700
Local: Mon, Sep 4 2006 10:20 am
Subject: Re: Google and Terms link on map - open in new window?
You need to specify the name of the new window as a string:
   window.open(gotoURL,"SOL");
otherwise it tries to use the value of a variable called SOL (I think).
Putting it in quotes will call the new window "SOL".

Andrew


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
SOL  
View profile  
 More options Sep 4 2006, 11:25 am
From: "SOL" <off...@sol.com>
Date: Mon, 04 Sep 2006 08:25:51 -0700
Local: Mon, Sep 4 2006 11:25 am
Subject: Re: Google and Terms link on map - open in new window?
Great! Working!!!
And the link DOES open up in window "SOL" when it exists.
The idea is to use "SOL" as the main window for information and "SOL2"
for large graphic stuff like maps and photoalbum.
My "dream" is that if someone hits a marker on the map in SOL2 I want
the info to open up again in SOL and people can jump from one to
another.
Now the dream can be true! :-)

Thanks Andrew!
Riccardo.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric B  
View profile  
 More options Sep 4 2006, 12:37 pm
From: "Eric B" <ebesse...@gmail.com>
Date: Mon, 04 Sep 2006 16:37:55 -0000
Local: Mon, Sep 4 2006 12:37 pm
Subject: Re: Google and Terms link on map - open in new window?
Back to my original question, I've figured out how to get the terms
link to open in a new window, but not the logo.  I think the logo uses
a javascript function, not an anchor tag.

Here's my code (Note, this is in Java using GWT):

Stack elements = new Stack();

elements.push( this.gmapWidget.getElement() );

while ( !elements.isEmpty() ) {
        Element e = (Element) elements.pop();

        String href = DOM.getAttribute( e, "href" );
        if ( href != null && href.endsWith( ".html" ) ) {
                DOM.setAttribute( e, "target", "_blank" );
        }
        for ( int i = 0; i < DOM.getChildCount( e ); i++ ) {
                elements.push( DOM.getChild( e, i ) );
        }

}

Thanks,
Eric

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
d_henderson  
View profile  
 More options Sep 4 2006, 1:33 pm
From: "d_henderson" <djndn...@gmail.com>
Date: Mon, 04 Sep 2006 17:33:23 -0000
Local: Mon, Sep 4 2006 1:33 pm
Subject: Re: Google and Terms link on map - open in new window?
When you click on the logo, you are sent to the site from which you
downloaded the API code, with parameters that will open the map there
with the same center and span as your currently displayed map, with
same host language, and same overview map state. This URL is generated
in code by the click handler, so it may not be so easy to subvert.

Bear in mind that your site visitors will be familiar with those links
from using http://maps.google.com, other Maps API pages, or from
previous visits to your page. Your page test scripts need to be
designed within this larger context. Your actual visitors may be less
likely to follow these links than your test script results suggest.
While a push every button, click every link strategy is good for
completeness, it does not reflect the actual usage patterns of your
visitors.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric B  
View profile  
 More options Sep 4 2006, 1:38 pm
From: "Eric B" <ebesse...@gmail.com>
Date: Mon, 04 Sep 2006 17:38:48 -0000
Local: Mon, Sep 4 2006 1:38 pm
Subject: Re: Google and Terms link on map - open in new window?
I agree that most users will not want to click on the logo.  However,
the border between the logo and the map is unclear.  Meaning, when your
mouse is on the edge of the logo, your mouse events are sent to the
map, no the logo link.  I just envison someone trying to pan as much as
possible from the lower left corner and accidentally clicking the logo
instead of the map because the transition (meaning when the mouse
pointer changes) is not the exact border of the logo.

Anyway, those of you working at Google, I'd really appreciate (in a
future release) a way to set which window the logo link opens in.  I
would think this behavior would be within the rules of the terms.

Thanks,
Eric


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »