I've made minimal case for this bug, which seems to be related to Adsense and V3 on the same page, when V3 is being used before the body onload event. I guess it might be because Adsense modifies the DOM structure.
Anyway the doco warns against using V3 before the body onload: "To ensure that our map is placed on the page after the page has fully loaded, we only execute the function which constructs the Map object once the <body> element of the HTML page receives an onload event. Doing so avoids unpredictable behavior and gives us more control on how and when the map draws." -------------------------------------- Problem: Adsense and Google Maps V3 (when used before body onload event) Minimal Case: http://www.william-map.com/20100502/2/problem.htm -------------------------------------- Webpage error details User Agent: IE8 (8.0.6001.18702) on Windows XP SP3 Timestamp: Sun, 2 May 2010 23:27:28 UTC Message: Unspecified error. Line: 35 Char: 78 Code: 0 URI: http://maps.gstatic.com/intl/en_gb/mapfiles/api-3/0/39/main.js -------------------------------------- Fix 1. Use body onload event to call initialize() http://www.william-map.com/20100502/2/fix1.htm Fix 2. Get rid of Adsense http://www.william-map.com/20100502/2/fix2.htm Fix 3. Change map to 600x300 instead of 600x400 http://www.william-map.com/20100502/2/fix3.htm Fix 4. Make reference to document.namespaces collection http://www.william-map.com/20100502/2/fix4.htm Fix 5. Declare a namespace in html tag (eg VML) http://www.william-map.com/20100502/2/fix5.htm On Apr 29, 2:09 pm, "Susannah (Google Employee)" <[email protected]> wrote: > Hi Esa, > > We haven't been able to reproduce this bug on IE 7 or IE 8. Your page > seems to load and run with no problem. Can you create a minimal case > that shows the error? > > Thanks, > Susannah > > On Apr 28, 6:06 pm, Esa <[email protected]> wrote: > > > > > > > On Apr 28, 7:54 am, "Susannah (Google Employee)" > > > <[email protected]> wrote: > > > Please report in the group if you see any regression > > > issues. > > > IE started to throw an unknown error on pages where the script is > > loaded inline (without init() function). > > > The error points to: > > > if(document[px]) > > > which seems to be document.namespaces; I got rid of the error by > > calling document.namespaces on the first line of my script. > > > // a hack to avoid unexpected "document.namespaces is undefined" > > errors with IE > > var justForIE = document.namespaces; > > > The error can be seen e.g. here:http://esa.easypagez.com/v3boundsbox/ > > > At least with my IE8 XP in both modes (7/8). > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Maps JavaScript API v3" 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 > > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" 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 > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en.- Hide quoted > text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
