Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I try to use Google map 'Hello World' in an asp application, but there is a problem
when i delete DOCTYPE every thing is fine but when i have, that doesn't show any map

i used the both below DOCTYPEs but none of them works for me, do you have any idea?

HTML
<!DOCTYPE html>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Posted
Comments
jkirkerx 15-Nov-12 1:37am    
You would have to post the whole header with script, it's not the doc type
Christ_88 15-Nov-12 1:43am    
so what should i do ?

1 solution

post the script part of the header, and the some of the map script, so we can see what you did wrong.

Did you load the draw map in the body tag, onload event?

The page, or DOM has to be ready, and the draw map has to load, in order for the map to display. So either the DOM is not ready, or your not loading the function.

It's 11pm here, i'm out to sleep.

<script>
  function initialize() {

    // Map initialization

  }
</script>
<body onload="initialize()">
  <div id="map_canvas"></div>
</body>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900