Funnily I was just coming on here because our store locator stopped working in our site - has been located inside a div for ages, used to work fine on IE, then just stopped the other day.
I came on here, tried both of the above, neither worked for me, but then I restored an old backup I had and voila, all good again. This flagged an answer in my head that may be applicable to you - if your site uses something like the TinyMCE editor like ours does, when you put the info in via that it cocks up. It needs dumping directly into our SQL database for the page to work. Don't ask me why, I couldn't tell you. Still, worth a look in case it's something "simple" like that. So ours is up and running again, in a div, all happy. As to why it broke I can only assume that someone opened it up in our backend and closed saving it, with the editor adding in an error.... On Dec 4, 9:32 am, Andrew Leach <[email protected]> wrote: > On Dec 4, 9:21 am, ProbablyMike <[email protected]> wrote: > > > Yes, IE does not like the map script within a div or table on the page > > as the API changes the contents of the page. > > > If you can't put your code in the head, the second best place is just > > before your </body> tag. > > Or, if your CMS forces you to place code inside a div, make the code a > function (so it doesn't get executed immediately) and then add that > function to the onload event, so it's executed once the page is ready. > > <script> > function myMapLoad () { ... } > window.onload = function () { window.onload; myMapLoad(); } > </script> > > Andrew -- 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.
