I'm using datatables. My code is working fine. Now I want to add a loader image (gif). I don't know how to add this. Here is my datatable script so far.
$(document).ready(function() {
$("#dvloader").show();
oTable = $('#example').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers"
});
});
Here is my loader:
<div id="loader">
<img src="ajaxloader.gif" />
</div>
In datatables 1.10 and onwards, you should use:
Not required as of today, but more standard given the new documentation. The project changed from using Hungarian notation to standard camelCase in the most recent update. Of interest:
If you want to replace the 'Processing...' string with an image as you mentioned in the comment you need to take a look here