Wasn't it [email protected] who wrote: > >On Apr 2, 3:54 pm, Hendra Satya <[email protected]> wrote: >> Hi >> >> I have generated many keys now for this domain and I keep receiving >> error >> message that the key was generated for a different website. >> Can anyone tell me what I am doing wrong please! The address >>ishttp://202.145.6.16/web-jakartabebasmacet/GooleMap%20with%20Fireants% >> >> > >I don't get a key error on that map (but I'm not sure why...) >Your API include is incorrect, it has a double ampersand in it >(&&) and white space (which is not allowed in URLs), both of >which have caused problems in the past. It is also missing the sensor >parameter, which may cause problems in the future. > <script src="http://maps.google.com/maps?file=api&v=2& > &key=ABQIAAAAdERMUBF78yfSLqztTfjKMxRLAMgXKRaq7v0sB4Bga-Pui2- >JGhQk2SneP0E645am9vuXrn34Jx9L7g" > type="text/javascript">
The extra & allows the white space to be included in the URL without causing problems. You can't have white space inside one of the URL parameters because the server isn't coded to expect it, but you can always add extra parameters to a URL that the server isn't expecting and it will ignore them. In this case, the server gets sent an extra parameter that looks like this after character conversion "&%20%20%20%20", and the server ignores it. -- http://econym.org.uk/gmap The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
