Success - in getting data from api

Success - in getting data from api

OhunjonOhunjon Posts: 9Questions: 5Answers: 0

hello everybody ! I am getting data from api and I wanted use my custom function in success getting data from api. I try but in table nothing showing maybe anything is wrong ... thanks in advance!

var table =  $("#table").DataTable({
        "ajax": {
                url:"/profiles_list",
                type: "POST",
                dataSrc: "",
                deferLoading: 57,

                success: function(){
                    muFunction()
                    console.log('yes');

                },
                error:function(error){

                    console.log('error');

                }
             }
        });

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi @Ohunjon ,

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

    Cheers,

    Colin

This discussion has been closed.