title: ajax post to App Engine not working
body: <p>So I have this html/js trying to test an ajax post</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;head&gt;
      &lt;script src="js/jquery-1.8.2.min.js"&gt;&lt;/script&gt;
      &lt;script src="../js/bootstrap.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          $(document).ready(function() { 
              document.write("booo");
              var data = {"lat":5};
              $.ajax({
                      type: "POST",
                      url: "/geo",
                      data: data,
                  });
              });
              var data = {"lat":5};
              $.ajax({
                      type: "POST",
                      url: "/geo",
                      data: data,
                  });
      &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;form method="post"&gt;
          &lt;input name="lat" type="text"&gt;
          &lt;input name="lon" type="text"&gt;
          &lt;input type="submit"&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Right now I'm just trying to post data, pick it up in python and write it back/store it in db but nothing is happening from my ajax post function. Here's my python,</p>
  
  <pre><code>class GeoHandler(Handler):
  
      def get(self):
          self.render("geo.html")
  
      def post(self):
          lat = self.request.get("lat")
          lon = self.request.get("lon")
          self.write(lat)
          loc = models.LocModel(coords = db.GeoPt(lat,lon), hm = str(lat).join(str(lon)))
          loc.put()
  </code></pre>
  
  <p>My url handler is </p>
  
  <pre><code>    ('/geo', GeoHandler),   
  </code></pre>
  
  <p>Eventually i'm trying to use javascript to capture location data of my users and map it... but app engine/webapp2 only likes to grab the ipv6 of the client and there's no way to get the location data of an ipv5 but there are html5/js solns for geo data.. but i can't even post basic data to the server</p>