[Pro] uploading a new site

Dave,
Having taken some of walt’s advice (above) I’ve cancelled two of the other 3 domains associated with this site and have reloaded the map on its own hidden page with your coding inserted as an HTML mark-up. Happily it now seems to be working!

http://www.berkeleyhouselewes.com/map.html

Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That would depend on how the different domains were redirected to the
site. If you typed in olddomain.com in your browser, and either a full-
page frame was used to present newdomain.com to you under the old
domain, or a full external redirect was made at the server level, so
that your browser actually showed newdomain.com in the location field
despite what you typed, then yes, you could have had a Google map
using the API.

Regardless of your source of traffic, you really do need to think
about Google. I have observed highly intelligent people*, masters of
their own domains, typing full http URLs into the Google search box as
a means of navigating in a Web browser.

Walter

*My former creative director, for one. Also my own beloved – who has
11 years of graduate and post-graduate education, and will happily
diagnose and treat your many and various (and exotic) eye diseases –
still does this after 21 years of marriage to me and countless
reminders that “the location field is that little text box at the very
top left of the browser window”.

On Jul 11, 2011, at 7:08 AM, PKelly wrote:

Interesting to know that but I’m not too concerned about that since
this is a local business and most of their clients are obtained by
word of mouth.

That being said, does this mean that it’s not possible to have
workable Google Map APIs when there are several domains pointing to
the same site? Seems to me this outfit’s old site was set up
similarly and did have a working Google Map.

Cheers!
Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Now re-uploaded this without Dave’s code and all seems well but with only 2 domains, one a .com and the other .co.uk, otherwise identical.
http://www.berkeleyhouselewes.com/findus.html
Thanks to both of you for your help!
Best,
Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK - but what about when you try http://berkeleyhouselewes.co.uk/findus.html

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

So why was it working fine yesterday and not today?
Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

And actually, since the .co.uk URL is being redirected to the .com (and the .com is working fine) will it matter?
Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

But the .co.uk site exists when you put that in the address bar - hence the error.

Try my code again using it for both www.berkeleyhouselewes.co.uk and http://berkeleyhouselewes.co.uk - with the same key.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Dave,
Okay, I’ve put in the code using the API key for the .com site (which is the where the files are) for both the .co.uk and the .com URLs. Is that right? It still doesn’t seem to work, though when you type in http://www.berkeleyhouselewes.co.uk/findus.html
Can you have a look?
Thanks!
Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

No

You need to use different keys for the .com and the .co.uk sites

You have

 <script type="text/javascript"> document.write( 
      '<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=' + 
      { 
         'www.berkeleyhouselewes.com': 'ABQIAAAAHrkYefNE9nZDeWicVstjRRQYu-YChuHPDuzsoWK5oYJ48AUOnhSPv7vkpnmJzxOZFlLqvg15jDSAcA', 
         'www.berkeleyhouselewes.co.uk': 'ABQIAAAAHrkYefNE9nZDeWicVstjRRQYu-YChuHPDuzsoWK5oYJ48AUOnhSPv7vkpnmJzxOZFlLqvg15jDSAcA',
      }[window.location.host] + 
      '" type="text/javascript"></script>' ); 
   </script>

Which is the same key in both

You should have

 <script type="text/javascript"> document.write( 
      '<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=' + 
      { 
         'www.berkeleyhouselewes.com': 'ABQIAAAAHrkYefNE9nZDeWicVstjRRQYu-YChuHPDuzsoWK5oYJ48AUOnhSPv7vkpnmJzxOZFlLqvg15jDSAcA', 
         'www.berkeleyhouselewes.co.uk': 'adifferentkeyinhere',
      }[window.location.host] + 
      '" type="text/javascript"></script>' ); 
   </script>

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Ah, I see––you confused me by saying “Try my code again using it for both www.berkeleyhouselewes.co.uk and http://berkeleyhouselewes.co.uk - with the same key.”

I’ll give it another go.
P


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Okay, new code in. Still doesn’t seem to work. Thoughts?
P


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK - one last go.

<script type="text/javascript"> document.write( 
      '<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=' + 
      { 
         'www.berkeleyhouselewes.com': 'ABQIAAAAHrkYefNE9nZDeWicVstjRRQYu-YChuHPDuzsoWK5oYJ48AUOnhSPv7vkpnmJzxOZFlLqvg15jDSAcA',
         'berkeleyhouselewes.com': 'ABQIAAAAHrkYefNE9nZDeWicVstjRRQYu-YChuHPDuzsoWK5oYJ48AUOnhSPv7vkpnmJzxOZFlLqvg15jDSAcA',
         'www.berkeleyhouselewes.co.uk': 'ABQIAAAAHrkYefNE9nZDeWicVstjRRQ9iCcWoUQOrnjn4K-BHyqQgt3WhhTkyr-2yHYAfOrqsaM6sO87kYFemw',
         'berkeleyhouselewes.co.uk': 'ABQIAAAAHrkYefNE9nZDeWicVstjRRQ9iCcWoUQOrnjn4K-BHyqQgt3WhhTkyr-2yHYAfOrqsaM6sO87kYFemw',
      }[window.location.host] + 
      '" type="text/javascript"></script>' ); 
   </script>

Copy and paste in After

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Dave,
Okay, done. Could you have another look?
http://berkeleyhouselewes.co.uk/findus.html
I still don’t see it working. Thanks much for sticking with this. It’s been very helpful in learning what works and what doesn’t.
Cheers!
Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You have google map code all over that page.

Start with a new blank page ie map2.html

Add 1 instance of the google map action - nothing else - with your google key etc.

Add my latest code in After

Try again

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hiya Dave,

Okay, have once again created a new map page (findus2), all clean this time, and inserted your code. Here’s the link– http://www.berkeleyhouselewes.co.uk/findus2.html
Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Ok - on the findus2 page try removing the key from the GM action palette - you will get an error when uploading but just ignore it.

Leave the markup code as it is.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

All done, Dave. Still getting the error message on findus2.html.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Then my last suggestion for you involves a bit of HTML editing.

You can use the action Source Code Snooper http://www.freewayactions.com/product.php?id=015 for this or edit the file directly on the server (findus2.html)

Essentially you want to delete the following line

<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=&amp;hl=en&amp;oe=ISO-8859-1" type="text/javascript"></script>

That is provided that you are 100% sure that your Google Key for the .co.uk site is correct.

Without access to your server it is very difficult to test from this end.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Okay, thanks! Will check this and get back to you.
Best,
P


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Well, well! That seems to have done it! Can you double-check this for me, Dave?
P


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options