title: node.js equivalent of a standard PHP ajax saving scheme
body: <p>In a JavaScript (client) + PHP (server) website, I have this scheme for saving an "<code>online notepad</code>" (in a <code>#textbox</code> textarea) to server:</p>
  
  <pre><code>// client-side
  $("#save-button").on('click', save); 
  
  function save(e) {
    $.ajax({ type: "POST",
             url: "/php/save.php",
             data: { projectname: $('#projectname').text(), 
                     data: $('#textbox').text() },
             success: function(data) { alert('Data saved'); },
             error: function(data) { console.log(data); } });
  }
  </code></pre>
  
  <p>and this on server-side (<code>/php/save.php</code>):</p>
  
  <pre><code>&lt;?php
  
  $projectname = $_POST['projectname'];
  $data = $_POST['data'];
  
  // save this into database
  
  ?&gt;
  </code></pre>
  
  <p><strong>What is the equivalent "post to server and save on server" scheme in node.js (client+server)?</strong> (using <code>express</code> for example)</p>
  
  <p>Is there a well-known node.js "<code>pattern</code>" for such task?</p>
  
  <p><strong>Is it common / good practice to use <code>$.ajax(...)</code> on client and node.js on server?</strong> I thought node.js introduced a new way of thinking, making ajax not-needed-anymore... am I wrong?</p>