Loading Icon.

Loading Icon.

genesisrgenesisr Posts: 15Questions: 6Answers: 0

Hi!
I want to know if there is a way to display a load icon after clicking a button that reloads the table?
I have a button that execute a refresh option, so, I want that everytime I click on it, appears in the table a load icon.

I already know how to display the icon, in this way:

table = $('#table').DataTable({
"language" : {
"sLoadingRecords" : '<span style="width:100%;"><img src="images/ajaxload.gif"></span>',
...
});

But that icon only appears when the table is loaded for the first time.

I would like if I clic in the button of refresh, the icon appears like on first time.. How should I do that?

Answers

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    This thread should help, it's asking the same thing.

    Cheers,

    Colin

This discussion has been closed.