Is it a good idea to replace

if (GBrowserIsCompatible())

with

if (document.getElementById)


I tried both on a very old Mozilla browser (about ten years old) and
it was in fact compatible and was able to display a v2 map, whereas an
old Netscape 4 that didn't know document.getElementById  wouldn't be
able to display a map and therefore would also be excluded by
GBrowserIsCompatible. Could be the same with older versions of IE
which I didn't try.

I think the intention of GBrowserIsCompatible never was to lock out
certain browsers but to avoid errors in rare cases. So it's main job
presumably isn't simply sniffing the userAgent. Would be interesting
to know what GBrowserIsCompatible is mainly looking for.

Anayhow, the problem with immemorial and incompatible browsers
persists in a few cases, although GBrowserIsCompatible is no longer a
part of the v3 API. Not only that, the problem now gets more complex
when mobile phone browsers will also be taken into account.

Any comments, ideas, insights?

-- 
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.

Reply via email to