Sending ajax call to php server returns empty error
<p>I have the following ajax call in a function, which is called upon a clickevent.</p>

<pre><code>$.ajax({
  url:"server.php",
  type:'GET',
  data: {'action':'addEvent'},
  success: function(response)
  {
    if(response)
    {
    alert("200 ok");                
    }
 },
 error: function(xhr, ajaxOptions, ThrownError)
 {
   alert("Error:" + ThrownError);
   $("#output").text("Error: "+ThrownError);
 }
}); 
</code></pre>

<p>The php side is as follows.</p>

<pre><code>  if(isset($_GET["action"]))
   {
      $action = $_GET["action"];
     if($action == 'addEvent')
     {
          echo("ping");
     }

   }
</code></pre>

<p>Now it throws an error. But the error message i get is : </p>

<p>Exactly, i get Error: </p>

<p>It is driving me crazy.</p>

<p>Also i put in my document.ready, to let it act as some sort of ping, and it worked perfectly</p>
