Google Maps API IE7 Script Error -
i implementing store locator via google maps api v3 , in ie7 keep getting script error, not present in modern browsers:
script16389: failed main.js, line 29 character 1331 the main.js file brought in google maps script. page code follows:
<body> <div id="map" style="width: 800px; height: 600px;"></div> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script src="http://maps.google.com/maps/api/js?sensor=true"></script> <script> var map; $(document).ready(function () { initialize(); }); function initialize() { var myoptions = { zoom: 4, center: new google.maps.latlng(37.4419, -96.1569), maptypeid: google.maps.maptypeid.roadmap }; map = new google.maps.map($('#map')[0], myoptions); } </script> </body> what problem here? thank you.
edit: here link loaded js file main.js: http://maps.gstatic.com/intl/en_us/mapfiles/api-3/9/1a/main.js
Comments
Post a Comment