Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
40
rated 0 times [  44] [ 4]  / answers: 1 / hits: 58671  / 13 Years ago, wed, april 13, 2011, 12:00:00

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>

More From » jquery

 Answers
11

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



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

[#92758] Tuesday, April 12, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
shylaelisan

Total Points: 37
Total Questions: 94
Total Answers: 110

Location: Angola
Member since Tue, May 5, 2020
4 Years ago
;