title: Add to Contacts like Add to Calendar button/ html/ Ajax option
body: <p>I would like to develop a "Add to contacts" button for a webpage, much like the "add to calendar - Google, ICal, Outlook" type buttons that you see on webinar and event pages <a href="https://propertyinvestorsnetwork.co.uk/meetings/liverpool/#payment_form" rel="noreferrer">like this one</a>.</p>
  
  <p>I started investigating Google Contacts, as I use that.
  I started building a form to submit an application/atom+xml to the URL they talk about in <a href="https://developers.google.com/contacts/v3/#creating_contacts" rel="noreferrer">the help files here</a> and a similar question for <a href="https://stackoverflow.com/questions/44396248/how-to-create-a-new-contact-via-google-contacts-api">Google on Stack</a>.</p>
  
  <p>I figure creating this is a Open Source like service to the community, some expert help would be appreciated as I tinker with it.  I am asking here for that contribution.</p>
  
  <p>My rough code, that isn't working</p>
  
  <pre>
  
  
  
  
  
  function SendToGoogle() {
  
  var url = "https://www.google.com/m8/feeds/contacts/default/full";
  var data = contactData();
  
  alert(data);
  
  /*
  $.post(url, data, function(data, status){
          alert("Data: " + data + "\nStatus: " + status);
      });
  */
      $.ajax({type: "POST",
          url: url,
          dataType: "xml",
          contentType: "application/atom+xml",
          cache: false,
          async: true,
          crossDomain: true,
          success: function(data, status){
          alert("Data: " + data + "\nStatus: " + status)}
  })
  
  
  } //end SendToGoogle
  
  
  
  
  
  
  
  
  function contactData() {
  return '        Elizabeth     Bennet     Elizabeth Bennet    Notes          (206)555-1212        (206)555-1213          Mountain View    1600 Amphitheatre Pkwy    CA    94043    United States          1600 Amphitheatre Pkwy Mountain View    ';
  } //end contactData
  
  
  
  </pre>