google maps api autocomplete works at localhost but does not work on the server -
i used google maps api autocomplete of places. everythings works in localhost, when publish , upload on server, doesn't work...why happen? dropdown of places not show. here html: <input type="text" id="autocomplete"> here js: <script src="https://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script> <script> var autocomplete; function initialize() { autocomplete = new google.maps.places.autocomplete( (document.getelementbyid('autocomplete')), { types: ['(cities)'], componentrestrictions: { country: "ph" } }); google.maps.event.addlistener(autocomplete, 'place_changed', function () { fillinaddress(); }); } placeparser = function(place){ result = {}; for(var = 0; < place.address_components.length; i++){ ac = place.address_components[i]; result[ac.types[0]] = ac.long_name; } return result; }; function fi...