On Sep 4, 2:41 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> You're right I apologize... the url
> is:http://www.westerncattletrail.net/contactus.php
>
> I've tried including the script about alert. I was not able to make
> headway using this technique. I placed the following code right
> before my close head tag -->
>
> <script type="text/javascript">Alert (location.host)</script>
>
> Possibly bad syntax?
javascript is case sensitive. Alert(...) is not the same as
alert(...).
you can put this in the address bar of your page:
javascript:alert('http://'+window.location.host)
as suggested here:
http://mapki.com/wiki/Read_This_First#My_API_key_doesn.27t_work
>
> I also went to the api creation page and tried a few things.
>
> I created the key a few mroe times, each time I got the following key
> before becoming sensitive (thanks to you) to the fact of a www or
> not. ---->ABQIAAAAapBcEvZVUgwAiHm97FhjURRyJOeG4aWhRF2nSFY2o9AMDKSN-
> hSiLO3I8nCgz_CjkUKX26heRMS3oQ
>
> Then I tried it with a www and got a different key --->
> ABQIAAAAapBcEvZVUgwAiHm97FhjURRhZdsiAWMChXlpLk5_zo1CXvnTzxQzbrG9Bp0ci2uQnhyZ5lZcuHymAw
>
> I tried entering it through my sitebuilder editing page into the
> google map api widget and still recieved the same error I descibed in
> my first post.
>
> "The Google Maps API key used on this web site was
> registered for a different web site. You can generate a new key for
> this web site athttp://code.google.com/apis/maps/. "
>
> I am very impressed that you've written me back so quickly and will
> attempt to follow up on your advice about "multiple keys".
>
> - and thanks for not ragging on me for not knowing javascript. I was
> nearly scared to post but didn't know of a better resource.
>
> - Tyson
>
> On Sep 4, 4:18 pm, Rossko <[EMAIL PROTECTED]> wrote:
>
>
>
> > > ... after creating westerncattletrail.net I added the google map
>
> > Can't see any map there.
>
> > Might help -
> > http://code.google.com/apis/maps/faq.html#keysystem
> > Use the "alert(window.location.host)" debugging aid.
>
> > Don't include the filename when requesting a key ; feel free to
> > request as many keys as you like.
> > Note that key for
> > http://www.westerncattletrail.net/
> > won't work if page is used via
> > http://westerncattletrail.net/
> > Seacrh this group for 'multiple keys' if your visitosr may use either.
>
> > cheers, Ross K- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---