Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Including a client's page which uses Google Maps API V2 into mine
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
  8 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
 
SeoGuy  
View profile  
 More options Jun 18 2012, 12:48 am
From: SeoGuy <websuccessmarketing....@Safe-mail.net>
Date: Sun, 17 Jun 2012 21:48:13 -0700 (PDT)
Local: Mon, Jun 18 2012 12:48 am
Subject: Including a client's page which uses Google Maps API V2 into mine

Hi,

I have  a web page into which I want to insert a client's page via an
"include".  This part works fine yet I get the infamous: "This web site
needs a different Google Maps API key. A new key can be generated at
http://code.google.com/apis/maps/documentation/javascript/v2/introduc...."
message.

This being said, both her site and mine are included in both our API
accesses under the form:

*.domain.com/*

I even tried putting this code on my pages to no avail:

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

not too sure what else to try?

Thanks for yoru help.

Seb.


 
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.
Andrew Leach  
View profile  
 More options Jun 18 2012, 9:37 am
From: Andrew Leach <andrew.leac...@gmail.com>
Date: Mon, 18 Jun 2012 14:37:42 +0100
Local: Mon, Jun 18 2012 9:37 am
Subject: Re: [Google Maps API v2] Including a client's page which uses Google Maps API V2 into mine
On 18 June 2012 05:48, SeoGuy <websuccessmarketing....@safe-mail.net> wrote:

> Hi,

> I have  a web page into which I want to insert a client's page via an
> "include".  This part works fine

What do you mean by "include"? HTML doesn't have an "include"
construction (apart from iframe, which isn't really the same thing).

You really do need to give precise details, including *real* urls and
exactly what you have specified as allowed referrers. There's no way
anyone can help otherwise.


 
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.
SeoGuy  
View profile  
 More options Jun 20 2012, 12:04 am
From: SeoGuy <websuccessmarketing....@Safe-mail.net>
Date: Tue, 19 Jun 2012 21:04:20 -0700 (PDT)
Local: Wed, Jun 20 2012 12:04 am
Subject: Re: [Google Maps API v2] Including a client's page which uses Google Maps API V2 into mine

Hi Andrew,

Pages are php and I do remember my designer referring to an I frame at some
point.

Here is a sample page:

http://web-success-marketing.com/beton-region/beton.php

and here are our api referers:

Referers:    

*.web-success-marketing.com/*
*.acces411.ca/*

thanks for your help!

Seb.


 
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.
Andrew Leach  
View profile  
 More options Jun 20 2012, 4:57 am
From: Andrew Leach <andrew.leac...@gmail.com>
Date: Wed, 20 Jun 2012 09:57:14 +0100
Local: Wed, Jun 20 2012 4:57 am
Subject: Re: [Google Maps API v2] Including a client's page which uses Google Maps API V2 into mine

On 20 June 2012 05:04, SeoGuy <websuccessmarketing....@safe-mail.net> wrote:

That page uses a Version 2 (long) key not a Console (short) key. Because
the creation of Version 2 keys has been discontinued, I can't see whether
yours is correct or not, but it seems it's not.

I suggest changing it for your Console key which is valid for
web-success-marking.com.

There *may* be issues with your using the Google Loader as well as loading
the Maps API directly; but changing the key is definitely the first thing
to do.


 
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.
SeoGuy  
View profile  
 More options Jun 20 2012, 9:46 pm
From: SeoGuy <websuccessmarketing....@Safe-mail.net>
Date: Wed, 20 Jun 2012 18:46:17 -0700 (PDT)
Local: Wed, Jun 20 2012 9:46 pm
Subject: Re: [Google Maps API v2] Including a client's page which uses Google Maps API V2 into mine

Hi Andrew,

I don't mean to take advantage of your kindness as your pointers are much
appreciated.  The thing is that this is my very first experience with
Google maps and I'm a little, ok I admit it: very confused.

Here's what I did try:

I tried using my client's key (she did allow requests from my domain).That
didn't work.

I did follow your advice and create a new key, which didn't work either.

Here is the key I put on my page (I will replace it once we figure this
out):

<script type="text/javascript"

src="http://maps.googleapis.com/maps/api/js?key=AIzaSyCes2HQWIKB5NsxjZWaJ-...">
    </script>

This may be irrelevant yet if I replace "true" with "TRUE" in above
statement, I get a different error message:

The Google Maps API server rejected your request. The "sensor" parameter
specified in the request must be set to either "true" or "false".

Soooooooooooooo looking forward to your response.

Seb.


 
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.
Andrew Leach  
View profile  
 More options Jun 21 2012, 5:48 am
From: Andrew Leach <andrew.leac...@gmail.com>
Date: Thu, 21 Jun 2012 10:48:37 +0100
Local: Thurs, Jun 21 2012 5:48 am
Subject: Re: [Google Maps API v2] Including a client's page which uses Google Maps API V2 into mine
On 21 June 2012 02:46, SeoGuy <websuccessmarketing....@safe-mail.net> wrote:

> I don't mean to take advantage of your kindness as your pointers are much
> appreciated.  The thing is that this is my very first experience with Google
> maps and I'm a little, ok I admit it: very confused.

There's no problem with asking in the group; that's what it's there
for. Replies may be a bit terse because there's no point in
superfluity. (But: please don't CC me into replies; I get emailed by
the groups software, and CCs mess up replying).

> Here's what I did try:

> I tried using my client's key (she did allow requests from my domain).That
> didn't work.

> I did follow your advice and create a new key, which didn't work either.

> Here is the key I put on my page (I will replace it once we figure this
> out):

> <script type="text/javascript"

> src="http://maps.googleapis.com/maps/api/js?key=AIzaSyCes2HQWIKB5NsxjZWaJ-...">
>     </script>

That looks fine; it loads Version 3. You won't need to replace the key
because only you can use it (you specify the referrers for which it's
valid).

> This may be irrelevant yet if I replace "true" with "TRUE" in above
> statement, I get a different error message:

> The Google Maps API server rejected your request. The "sensor" parameter
> specified in the request must be set to either "true" or "false".

Yes. TRUE is not the same as true. Javascript and other languages are
case-sensitive.

Using Firebug, I can see you are loading
http://maps.googleapis.com/maps/api/js?key=AIzaSyCes2HQWIKB5NsxjZWaJ-...
http://maps.google.com/maps?file=googleapi&key=ABQIAAAAmfnmLtcTHrHhkp...

So you are loading both Version 3 and Version 2 APIs. I can't find
where the Version 2 API is loaded; I suspect that's what is producing
the message.

But you don't appear to have any code which builds a map in any case.
I can't find the "resultsMap" div referenced anywhere.

However: I *can* see what you meant by "include". Your developer has
used php to include a complete web page inside another. Unfortunately
that has resulted in invalid HTML because you have two <html> elements
and two <head> elements. And it's probably what has resulted in
loading different APIs.

It's looking rather like you need to hire a developer. I'm afraid that
sorting out that code is probably beyond the scope of this group.


 
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.
SeoGuy  
View profile  
 More options Jun 22 2012, 2:57 am
From: SeoGuy <websuccessmarketing....@Safe-mail.net>
Date: Thu, 21 Jun 2012 23:57:38 -0700 (PDT)
Local: Fri, Jun 22 2012 2:57 am
Subject: Re: Including a client's page which uses Google Maps API V2 into mine

Hi Andrew,

Thanks for your time and efforts.  Are-you for hire?


 
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.
geocodezip@gmail.com  
View profile  
 More options Jun 23 2012, 5:44 pm
From: "geocode...@gmail.com" <geocode...@gmail.com>
Date: Sat, 23 Jun 2012 14:44:46 -0700 (PDT)
Local: Sat, Jun 23 2012 5:44 pm
Subject: Re: Including a client's page which uses Google Maps API V2 into mine
On Jun 21, 2:48 am, Andrew Leach <andrew.leac...@gmail.com> wrote:

I see it being loaded using the google loader:
google.load('maps', '2.x');

To the OP:
Is the some reason you can't use an iframe pointed at the original
site?  That would work with the existing key.  If not then I think you
need a key for your own domain enabled for the v2 API in this line:
<script type='text/javascript' src='http://www.google.com/jsapi?
key=ABQIAAAAmfnmLtcTHrHhkpkNKRujrRRnRZM9i66V77rRaQmSxF8bpYq1RBQ2RLYMDfRCRcC PWBzO7serz8DfcA'></
script>

Do you have an old style API v2 key for your domain?

  -- Larry


 
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 »