javascript - Importing JS file with AJAX does not work -


i had javascript code working when tried put own file, stopped working :)

here url use: http://www.comehike.com/hikes/javascript_library.js

any idea why doesn't work? test working, try hitting url see if google map shows if js on page. http://www.comehike.com/hikes/hike_carpool.php?hike_id=125

thanks, alex

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

place google map api before javascript_library.js (aka map scripts)

and remove script tag javascript_library.js


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -