title: Saving users current location as geopoint using parse.com in javaScript
body: <p>Hi there I am new to javaScript. What I would like to do is get the users location and save it as a geoPoint to my parse.com database. I have searched their docs and worked out the basics of how to do it but need a little help. I am getting the geoPoint by performing the following:</p>
  
  <pre><code>var point = new Parse.GeoPoint.current;
  </code></pre>
  
  <p>and trying to save it by performing:</p>
  
  <pre><code>testObject.set("geoPoint", point);
  </code></pre>
  
  <p>In my geoPoint column on parse.com it gets saved as <code>{"_rejected":false,"_rejectedCallbacks":[],"_resolved":false,"_resolvedCallbacks":[]}</code></p>
  
  <p>I'm assuming this is because the location is attempting to be saved before the location has actually been found.</p>
  
  <p>So my question is how do I wait until the location is found before sending it to parse?</p>
  
  <p>In the parse docs they say to use <code>Parse.GeoPoint.current(options)</code></p>
  
  <p>but I'm not too sure how to go about this options part. I'm really hoping someone can give me some sample code on how to use <code>options.success</code></p>
  
  <p>Thanks for your time!</p>