[ACCEPTED]-Want to show loader GIF in datatables-datatables

Accepted answer
Score: 64

If you want to replace the 'Processing...' string 2 with an image as you mentioned in the comment 1 you need to take a look here

$('#example').dataTable( {
    oLanguage: {
        sProcessing: "<img src='loading.gif'>"
    },
    processing : true
});
Score: 13

In datatables 1.10 and onwards, you should 12 use:

$('#example').dataTable({
  language: {
     processing: "<img src='loading.gif'>"
  },
  processing: true
});

Not required as of today, but more standard 11 given the new documentation. The project 10 changed from using Hungarian notation to standard camelCase in the most recent update. Of 9 interest:

Please note that the Hungarian 8 notation option is deprecated and will be 7 removed in future versions of the extensions 6 (on the extension's next major version update 5 - i.e. 1.x to 2.x, although 2.x is not planned 4 for a long time to come - plenty of life 3 in the 1.x series still!). The documentation 2 for the extensions will be updated to remove 1 the Hungarian notation before that point.

More Related questions