Thanks I added onLoad="wagt_map_1()"
onto my body tag in the template and this has worked. I am very grateful for your help (for everyone's). As far as validation goes, the template passes validation so it's easy to see which bits are a problem as I add them to a page... it's therefore more of a tool for the work in progress at the moment than a statement of excellence! Well spotted though. I am truly much obliged! Stephen -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: 19 May 2009 23:49 To: Google Maps API Subject: Re: Map not displaying in any browsers On May 19, 3:04 pm, "[email protected]" <[email protected]> wrote: > On May 19, 11:35 am, "[email protected]" <[email protected]> wrote: > > > I am having problems getting the map to work. > > > I get the error message: 'The Google Maps API server rejected your > > request. This could be because the API key used on this site was > > registered for a different web site. You can generate a new key for > > this website at %1$s.' > > > The address is:http://www.stephen.worcesterguitar.co.uk/wcgo/wcgo-rehearsals.php > > I don't get that error on that page. > > > > > I have tried generating all manner of API keys for local and remote > > server variations and none work. > > > I have tried stopping XAMPP (Apache and MySql) to see if that made any > > difference - it didn't. > > > I have tried it with sensor=false (it is not a mobile site) and I have > > tried it without - I was careful to use the appropriate & and > > semicolons. > > > The site was installed using Web Assists 'Dreamweaver Tools > > for Google 2' - their technical support looked at my generated API > > keys and concluded they were correct, and therefore unable to assist > > further. He recommended I contact you guys. > > The problem I see is with their stuff. > > The div with id waft_map_1 doesn't exist when the wagt_map_1() > function runs. > > so this test causes it to return false and not run any of the code to > create the map... > if(!document.getElementById('wagt_map_1')) return false; > > If I type this in the address bar (after the page is rendered and the > map div exists): > javascript:wagt_map_1(); > > I see a map... FWIW, if you run wagt_map_1() as the body onload function, the map appears. Also, you claim your html is valid, but it isn't (but should be easy to fix...): http://validator.w3.org/check?uri=http%3A%2F%2Fwww.stephen.worcesterguitar.c o.uk%2Fwcgo%2Fwcgo-rehearsals.php;accept=image%2Fgif%2C%20image%2Fx-xbitmap% 2C%20image%2Fjpeg%2C%20image%2Fpjpeg%2C%20application%2Fvnd.ms-excel%2C%20ap plication%2Fvnd.ms-powerpoint%2C%20application%2Fmsword%2C%20application%2Fx -shockwave-flash%2C%20application%2Fxaml%2Bxml%2C%20application%2Fvnd.ms-xps document%2C%20application%2Fx-ms-xbap%2C%20application%2Fx-ms-application%2C %20*%2F*;accept-language=en-us -- Larry > > -- Larry > > > > > > > I am using Dreamweaver CS4 and testing on IE7, Google Chrome, Firefox, > > Opera and Safari. As well as the localhost. > > > I am really stumped with this one, I have been altering the code in > > the HTML: > > > <script type="text/javascript" src="http://maps.google.com/maps? > > file=api&v=2&key=ABQIAAAAKImuJ6Z_l62eUo6I9oty9BQjAA6YKIPwqNi2Dw_6PxbrDDCCqh QHJMeI4g4Bd_IB3QBXg_uQ1dZhug">/ > > *wagt*/</script> > > > Should I be altering any code in the javascript files? [wagt_maps.js > > and wagt_maps_1.js] > > > Thanks, > > > Stephen- 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 -~----------~----~----~----~------~----~------~--~---
