table.ajax.url(url).load options ?

table.ajax.url(url).load options ?

mpoirier101mpoirier101 Posts: 3Questions: 3Answers: 0

I want to specify an empty dataSrc ajax option but table complains about this.

var $table = $('#table').DataTable({
ajax: {
dataSrc: ''
},

I do not want to retrieve data on table creation, I use the "table.ajax.url(url).load" method...

How can I set this option on the method ?

Thanks !

Answers

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

    Hi mpoirier,

    It's not possible to set the Ajax dataSrc after initialisation. See this thread for more suggestions.

    Cheers,

    Colin

This discussion has been closed.