title: Eliminate 404 url error in console?
body: <p>I try to eleminate an 404 error occuring because the source (src) is missing..</p>
  
  <pre><code>var $chart = $("&lt;img /&gt;")
      .addClass("trend-pic")
      .error(function(){
          console.log("error loading..")
      });
  try{
      $chart.attr("src", jobs[counter].url + "test/trend")
  }catch(err){
      $chart.attr("src", "");
  }    
  </code></pre>
  
  <p>if tried many stuff to catch the error i.e. putting an <code>.error(function(){})</code> at the end.
  use the <code>$chart.load()</code> - method to check if the images gets loaded?
  Non of those helped? </p>
  
  <p><code>GET {myURLString} 404 (Not Found)</code> </p>
  
  <p>Browser: Safari</p>