title: show loading.. image when processing onclick event
body: <p>A button click event triggers filtering on a data table. While JQuery is processing that , the page should display a loading image.This is not an ajax request.</p>
  
  <p>This is my code that doesn't work : </p>
  
  <pre><code>$("somebutton").click(function(){
    $("#loader").show();
    // do some stuff.....
    //...
    // now hide the loader again
    $("#loader").hide();
  });
  </code></pre>
  
  <p>Any ideas?</p>