To simplify question 2, where do I get the code from for a map? How would this appear on the page?
On Tue, Apr 13, 2010 at 3:13 PM, Pro Tyre <protyre...@googlemail.com> wrote: > Thanks...I have now placed the API code in 'default.aspx' and the error is > no longer appearing...just two more questions... > > - I set the sensor parameter to false...what effect does this have? What > would happen if I set it to true? Which one is best practice for my purpose? > > - What code would I put in now, for example via the CMS for > http://www.protyre.co.uk/outletsdesc.aspx?id=11049 > to show a map for, 'SO21 3AP'? > > > On Tue, Apr 13, 2010 at 3:06 PM, Andrew Leach < > andrew.leac...@googlemail.com> wrote: > >> On Apr 13, 2:56 pm, Pro Tyre <protyre...@googlemail.com> wrote: >> > If you go directly to: >> > >> > http://www.protyre.co.uk/outletsdesc.aspx?id=11049 >> > >> > You can view where I have tried to place the code, however it throws up >> an >> > error. I want to place a map on every 'outlet' page, however this >> appears to >> > be a struggle! Please advise. >> >> It probably will work if you take out the HTML tags from your >> Javascript string. This is what the browser gets: >> <script src="http://maps.google.com/maps?file=api&<br />v=2&<br / >> >sensor=false&<br />key=ABQIAAAALwE- >> >> PnXiYffpLGLtuyCuEhSkAorXqwaZVTPJ7usPn_HBK3eOihTINaQdlmq13MY4StMwHARr9i1i0g" >> type="text/javascript"></script> >> >> You have already quoted what it should be getting. Perhaps your CMS is >> changing things? >> >> > Also, is there a simple way of fixing Step 2 i.e. to validate the >> postcode >> > properly? >> >> Almost certainly, but that's chargeable work. Your existing code >> appears to be expecting a function called ValidatePostcode, which you >> haven't included in WebResource.axd. I suggest going back to wherever >> that came from first. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Maps API" group. >> To post to this group, send email to google-maps-...@googlegroups.com. >> To unsubscribe from this group, send email to >> google-maps-api+unsubscr...@googlegroups.com<google-maps-api%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-maps-api?hl=en. >> >> > -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to google-maps-...@googlegroups.com. To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.