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:
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.
On Monday, June 18, 2012 9:37:42 AM UTC-4, Andrew Leach wrote:
> 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.
Hi Andrew,
Pages are php and I do remember my designer referring to an I frame at some point.
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.
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):
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):
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.
On Monday, June 18, 2012 12:48:13 AM UTC-4, SeoGuy wrote:
> 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:
> 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):
> 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.
> 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.
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?
> 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.