Google Maps Autocomplete Function with PHPRunner
<p>I'm designing an interface with PHPrunner that runs on XAMPP.
In a page of the interface I need to use the Google Maps Autocomplete function on a textbox.</p>

<p>To get the JavaScript piece of code I used this <a href="http://jon.kim/how-to-add-google-maps-autocomplete-search-box/" rel="nofollow">guide</a>. I managed easily to link the function to the Control of the textbox but as soon that the pages load the whole textbox crashes with Google giving an anonymous error (something like "We're sorry, an error occurred").</p>

<p>In particular I put</p>

<pre><code>&lt;script src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false&amp;libraries=places"&gt;&lt;/script&gt;
</code></pre>

<p>in the <code>&lt;head&gt;</code> tag of the page and the code</p>

<pre><code>function init() {
            var input = document.getElementById('myfield');
            var autocomplete = new google.maps.places.Autocomplete(input);
        }
</code></pre>

<p>in the Javascript OnLoad Event (in PHPrunner).</p>