title: Google Maps API on Localhost Issue
body: <p>I'm brand new to working with the google maps api, and i've been stuck on this for a while now.  i searched around and couldn't find much on why this is happening.</p>
  
  <p>the problem seems to be with this request:
  <a href="http://maps.googleapis.com/maps/api/js/AuthenticationService.Authenticate" rel="noreferrer">http://maps.googleapis.com/maps/api/js/AuthenticationService.Authenticate</a><strong>?1shttp%3A</strong>%2F%2Flocalhost%2FjQUeryMobile%2FHome%2FContact&amp;callback=<em>xdc</em>._g5hc9f&amp;token=122839</p>
  
  <p>the bold part is obviously a problem.  this parameter doesn't seem to be being built properly.</p>
  
  <p>i don't have any control over this though, this is all done by the maps stuff.</p>
  
  <p>here's my line for including the maps script:</p>
  
  <pre><code>&lt;script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3&amp;sensor=false&amp;callback=initializeGeoCoder"&gt;&lt;/script&gt;
  
  
      function initializeGeoCoder(){
          alert('initialize');
          geoCoder = new GClientGeocoder();
      }
  </code></pre>
  
  <p>interestingly enough, that alert does fire, but then nothing happens.</p>
  
  <p>maybe important details about my setup:</p>
  
  <p>i'm running iis locally on windows 7.  the project is a .net 3.5 mvc 2.0 project.  with jquery and jquery mobile.</p>
  
  <p>i've tried it in FF, chrome, safari and IE.  </p>
  
  <p>is it really a case of the api not being able to handle running on localhost?  how does anyone do any testing?</p>
  
  <p>EDIT:  looking into this even further, i looked at the requests for some of the samples. 
  <a href="http://code.google.com/apis/maps/documentation/javascript/examples/map-simple.html" rel="noreferrer">http://code.google.com/apis/maps/documentation/javascript/examples/map-simple.html</a></p>
  
  <p>it has a request pretty well the same:
  <a href="http://maps.googleapis.com/maps/api/js/AuthenticationService.Authenticate?1shttp%3A%2F%2Fcode.google.com%2Fapis%2Fmaps%2Fdocumentation%2Fjavascript%2Fexamples%2Fmap-simple.html&amp;callback=_xdc_._56yxp&amp;token=74698" rel="noreferrer">http://maps.googleapis.com/maps/api/js/AuthenticationService.Authenticate?1shttp%3A%2F%2Fcode.google.com%2Fapis%2Fmaps%2Fdocumentation%2Fjavascript%2Fexamples%2Fmap-simple.html&amp;callback=<em>xdc</em>._56yxp&amp;token=74698</a></p>
  
  <p>which returns:</p>
  
  <pre><code>_xdc_._56yxp &amp;&amp; _xdc_._56yxp( [1,null,0] )
  </code></pre>
  
  <p>mine returns:</p>
  
  <pre><code>_xdc_._10kda1 &amp;&amp; _xdc_._10kda1( [1,null,0] )
  </code></pre>
  
  <p>i originally thought this was gibberish b/c of the request url being bad. but it seems that might not be the case.</p>
  
  <p>some more information:</p>
  
  <p>when running in IE, with script debugging running:  this line fails:</p>
  
  <p>EDIT: More Information:</p>
  
  <p>when running it in IE, with script debugging. i get an error on this line:</p>
  
  <pre><code>geoCoder = new GClientGeocoder();
  </code></pre>
  
  <p>the error is:</p>
  
  <blockquote>
    <p>'GClientGeocoder' is undefined</p>
  </blockquote>
  
  <p>so: something from the maps api isn't getting loaded all the way it seems.</p>