On Oct 7, 10:46 pm, "Colin Ross-Jones" <[EMAIL PROTECTED]>
wrote:
> & the error message no longer shows but still the Google map is not showing
> although the space for it is there, can you please help me resolve this.

One step is validating your HTML validator.w3.org

You can't just stick this
  </head>
  <body onload="initialize()" onunload="GUnload()">
    <div id="map_canvas" style="width: 500px; height: 300px"></div>
  </body>
</html>
into your page! There are loads of other problems too.

You're using Dreamweaver, which sticks lots of MM_ functions into the
first <body> tag. You need to add your initialize() to that string of
functions.

An HTML page should have a general structure of
<!DOCTYPE>
<html>
<head>
<title>...</title>
</head>
<body>
</body>
</html>
There should be nothing before <!DOCTYPE> (not even a blank line);
nothing between that and <head>; nothing between </head>   and <body>,
and nothing after </body>. There should only be one <head>...</head>
section and one <body>...</body> section, and you can't nest them.

Within the head and body, each pair of tags should be correctly
nested, so you can't do
<b><i>bold and italic</b></i>
And each pair of tags should be correctly opened and closed, so you
need to pair up
<div>
 <table>
   <tr>...</tr>
 </table>
</div>
You can't just leave a closing </table> tag out, say, even though the
browser gets a clue that it's closed because of the </div> which
follows it.

All of these comments are based on the errors which the validator
found; I haven't gone through the code in fine detail.

However the reason your map isn't appearing is because only the first
<body> tag is recognised, and your initialize() function isn't run
with that tag.

Andrew

PS: If you have two domain names, you'll need to do something about
getting two keys and making them work together. Search for "multiple
domain names" when you've got the map working with one domain name.
--~--~---------~--~----~------------~-------~--~----~
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