On Dec 13, 10:19 am, Alex <[email protected]> wrote:
> Hi all
>
> Why didn't I show the map before I deleted below words:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml";  xmlns:v="urn:schemas-
> microsoft-com:vml">
>
> After I deleted, everything was ok.

Probably because your page doesn't conform to the XHTML standard: you
have </head> and <body> **within** your <style> declaration. If you
use Firefox and "View Source" it helpfully colour-codes and styles the
page source.

There is an issue with specifying an XHTML document and not using the
AJAX loader. The normal API <script> tag isn't compatible with XHTML
because it uses document.write to alter the DOM. See
http://code.google.com/intl/fr/apis/maps/documentation/index.html#AJAX_Loader

As that means changing all the G object references, the simple
solution is not to specify an XHML doctype. But you do need to get
your HTML right.

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

Reply via email to