jquery loader on processing

jquery loader on processing

adip singhadip singh Posts: 1Questions: 1Answers: 0
edited July 2016 in Free community support

I am using dataTable 1.10. In my application i have a loader which is called on every ajax request using

 $(document).ajaxStart(function () {
            $("#loader-wrapper").show();            
        });
        $(document).ajaxComplete(function () {
            $("#loader-wrapper").hide();
        });

I tried to show this loader on preDrawCallback but not working. I don't want to show "processing...". I want to show this loader

"preDrawCallback": function () {
                    debugger
                    // gather info to compose a message
                    $("#loader-wrapper").show();
                    return true;
                },

Please suggest a solution.
Regards,
Adip

Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Answers

  • allanallan Posts: 63,810Questions: 1Answers: 10,516 Site admin

    I would suggest you listen for the processing event rather than using the callbacks.

    Allan

This discussion has been closed.