Click here to Skip to main content
15,905,419 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello sir,

I am using following script in my html editor :

XML
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false">



But when I use this it automatically add following script in my editor see below:

XML
<script type="text/javascript" src="http://maps.gstatic.com/intl/en_us/mapfiles/api-3/3/9/main.js">
//<![CDATA[

//]]>
</script>



Why above line come automatically any idea because of this line I get error


m.google.map.load is not a function

Error come.

Please help
Posted
Updated 1-Feb-11 23:34pm
v2

XML
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false">

You have to close the script tag. So, write this
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false">
</script>
 
Share this answer
 
v2
What editor do you use? And does the editor add the second script or does that happen when you run the file in your browser?
 
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