title: jQuery ajax works on local but not on server
body: <p>I m actually put of my min with this code ....</p>
  
  <pre><code>$.ajax({
                  'url'               : site_root + '/ajax.php',
                  'type'          : 'POST',
                  'data'          : 'function=check_user_login_name&amp;user_login=' + user_login,
                  beforeSend  : function()
                  {
                      $('#check_result_span').html('Checking ...');
                  },
                  success         : function(data)
                  {
                      if(data != 1)
                      {
                          $('#check_result_span').addClass('green').html('Available!');
                      }
                      else
                      {
                          $('#check_result_span').addClass('red').html('Already taken!');
                      }
                  }
              });
  </code></pre>
  
  <p>This works fine on local machine, but not on server ...</p>
  
  <p>the server page link is <a href="http://onlyfreelancer.com/signup.php" rel="nofollow noreferrer">http://onlyfreelancer.com/signup.php</a></p>
  
  <p>Please click on the "Check availability" link, nothing happens on server but on local it shows if the user login name is still available or not</p>
  
  <p>Any help plz?</p>