title: Ajax Post request fails
body: <p>I am sending a http POST request to a php file (<em>located in another host</em>), using ajax, inside a JavaScript file hosted at 000webhost.com.
  Even though I can see that the php file at the other host gets my request and acts accordingly, my script believes that the request failed and moves to the <strong><em><code>fail(function()</code></em></strong> part of the code.</p>
  
  <p>Could this be a problem with my host?</p>
  
  <p>Here is the code:</p>
  
  <pre><code>$.ajax({
      url: 'MyURL',
      data: 'MyData',
      type: 'POST',
      dataType: 'json'
  }).done(function(jqxhr){
      //Part which I want to be executed.
  }).fail(function(){
      //Part which that is executed.
  }).always(function(){
  
  });
  </code></pre>