title: POSTing with $.ajax doesn't work
body: <p>Well, the problem is not new, as I saw (really surf a lot), but still can not find solution for myself. </p>
  
  <p><em>Description of problem:</em></p>
  
  <ol>
  <li>Have local Web server - XAMPP;</li>
  <li>Firefox 29.0.1</li>
  <li><p>And trying to send POST with $.ajax</p>
  
  <pre><code>function checkUser(){
    $.ajax({
      type: 'POST',
      url: 'ajax/checkUser.php',
      data: 'uname='+$("#username").val()+'&amp;pword='+$("#password").val(),
      success: function(){
        someNewFunc();
      },
    });
  };
  </code></pre></li>
  </ol>
  
  <p>This function I'm calling with:</p>
  
  <pre><code>$(document).ready(function(){
          $(".button.postfix.login").on("click", function(){
          if (($("#username").val() != "") &amp;&amp; ($("#password").val() != "")) {
              hide(); &lt;-- hide pop ups about empty field
              checkUser();    
          } else {$("#empty").show();} &lt;-- pop ups 
          });
      });
  </code></pre>
  
  <p>And here code of page with elements:</p>
  
  <pre><code>&lt;input id="username" type="text" placeholder="Username" /&gt;
  &lt;input id="password" type="password" placeholder="Password" /&gt;
  
  &lt;a class="button postfix login" href="#" 
  onclick="event.preventDefault();"&gt;Sign in&lt;/a&gt;
  </code></pre>
  
  <p>I guess that data are going out, but the page checkUser.php doesn't get anything. 
  What am I doing wrong?</p>
  
  <p>P.S. checkUser.php:</p>
  
  <pre><code>&lt;?php
  print_r($_POST);
  ?&gt;
  </code></pre>
  
  <p>Result - Array ( ) </p>
  
  <p>P.P.S. By the way, if POST change to GET it's working, but need to be POST</p>