title: Google Plus connect API using jQuery/Ajax
body: <p>I am trying to trigger the Google plus connect API within a jquery/ajax function.
  The response I get is undefined. Firebug shows an empty response.</p>
  
  <p>This is the code I am using:</p>
  
  <pre><code>function gPlusConnect ()
  {
      console.debug('line 401 ajax gestartet');
      result=$.ajax({
          type: 'POST',
          async: false,   // false
          url: 'https://accounts.google.com/o/oauth2/auth', 
          data: ({
              scope:'https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile',
              state:'/profile',
              redirect_uri:'https://ssl.webpack.de/learnface.de/donation/launchpages',
              response_type:'code',
              client_id:'.........82.apps.googleusercontent.com',
          })
      }).responseText;
      console.debug('index.php 415 ajax ends with '+result+' from g+');
  }
  </code></pre>
  
  <p>The result in firebug is:</p>
  
  <pre><code>Header      Post      Antwort   HTML
  index.php    415        ajax    ends undefined from g+
  </code></pre>
  
  <p>Has anyone done this successfully? Do you recommend a better alernative?</p>