beforeSend, error return from php page
<p>I have an ajax with beforesend, but if an error occurs on page data.php, with feedback, "erro1" prostrate an alert warning that rushed to a user error in this request.</p>

<p>I would be very grateful for the help.</p>

<p>Code.</p>

<pre><code>$.ajax({
  type: 'post',
  url: 'data.php',
  data: 'add=1',
  beforeSend: function() {
    parent.animate({'backgroundColor': '#FFFFFF'},300);
  },
  success: function() {
 LoadingOFF();
    parent.fadeOut(300,function() {
      parent.remove();
    });
  }
</code></pre>
