Larry, I just tried what you said. I hope I understood what you were saying. But it's still spitting out the same error message.
On Nov 11, 11:16 am, "[email protected]" <[email protected]> wrote: > On Nov 11, 7:46 am, Floyd <[email protected]> wrote: > > > A sample zip code would be 32174 (there should be a few retailers > > within that area). > > I'm using IE8 and I don't get any. > > In one of the errors it is referencing this line as "Object doesn't > > support this property or method" > > GDownloadUrl(searchUrl, function(data) { > > > Also, getting error permission denied to main.js, which is hosted by > > google, could that be because it is an external JS? > > Your map variable is now local to the sl_load function > function sl_load() { > var map = > > change it to be global: > var map = null; > function sl_load() { > map = > > Note that the variable is defined in the global context, outside of > any function, then initialized in the load function (just like the > geocoder...) > > -- Larry > > > > > On Nov 11, 9:57 am, Andrew Leach <[email protected]> wrote: > > > > On 11 November 2010 14:42, Floyd <[email protected]> wrote: > > > > > I've done a search in this group and haven't been able to resolve my > > > > issue. I've tried moving the javascript outside of the div element to > > > > no avail. I've read elsewhere that there may be clashing variables > > > > between the php and css? (I read this > > > > here:http://www.codingforums.com/showthread.php?t=151019 > > > > There isn't a problem with PHP and CSS. In fact because one is > > > server-side and the other client-side, you can't have a "clash" of > > > variables between PHP and CSS. > > > > There is an issue with a line like > > > map = new GMap2(document.getElementById("map")); > > > in IE because it re-assigns a variable called map which is *already* > > > referring to document.getElementById("map"), and you can't reassign > > > it. That's a quirk of IE which allows you to refer to form fields and > > > the like by referencing just the id of the form. > > > > If you always use var, you'll be fine: > > > var map = new GMap2(document.getElementById("map")); > > > is the right way because it defines an entirely new Javascript > > > variable and breaks the link IE creates by default. Using var > > > correctly helps define the scope of a variable unambiguously. > > > > > A link to my page with the map on > > > > it:www.protectmyyard.com/yard-gard-retailers.html > > > > What do we have to do to get it to go wrong [remember that not > > > everyone knows about US zip codes] > > > > I get a map and markers in IE7. Have you tried clearing your cache?- Hide > > > quoted text - > > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
