title: Problems getting error message from AJAX - error on phone only
body: <p>I have a basic web app - it is bug free for a while.
  Occasionally - for what I expect is some network issue, I am unsure - 
  And only on a phone (Android / chrome) - The basic AJAX returns an error - but there is no value.</p>
  
  <p>This is driving me a bit crazy - as I do not know how to debug an error that is blank.</p>
  
  <p>Basic AJAX post:</p>
  
  <pre><code>$.post("&lt;?php echo base_url(); ?&gt;"+controller_G+"/"+Method_Param_G+"?"+Math.random()+"&amp;SEARCH_STRING="+SEARCH_STRING_G, $("#"+Data_G).serialize(), function(data, status){
  }).done(function(data){
  
      // OWNER SEARCH VIA APP
      if(data.indexOf("Search term found:") &gt; -1){
          // Happy Days! :)
      }
  }).fail(function(xhr, textStatus, errorThrown){
      $("#ajax_message").modal();
      $("#ajax_error_message_inner_text").html(textStatus+" -&gt; "+errorThrown+" -&gt; "+xhr.responseText);
  });
  </code></pre>
  
  <p>The <strong>ajax_message</strong> produces "<strong>error -> -> undefined</strong>"</p>
  
  <p>I can not replicate this error in my desktop browser chrome - all seems fine there.</p>
  
  <p>Would also be helpful to know:
  What are the typical ways to debug in android/iphone anyway?
  And what are the typical errors with AJAX on a phone?</p>
  
  <p>When I reload the page on the phone - normal operation returns for a while.
  eventually another error returns.</p>