datatables not starting when using in ajax result
datatables not starting when using in ajax result
tkoerner
Posts: 1Questions: 0Answers: 0
I want to use Data Tables 1.9, here :
http://konzertagentur-koerner.de/index.php/testStart
When using the dt debugger, it says that software is installed, but no table shown in the table tab.
What I did:
I use ajax to call a table.
I referenced the datatable.min.js, the jquery.js and myjs.js in the view file, I use the datatable() methode in the myjs file .
Should I post my files here?
When asking if jquery is installed, it says ye in myjs:
[code]
if (typeof jQuery == 'undefined')
console.log('jq not working');
else
console.log('jq works');
[/code]
Is it a problem related to asynchronous calls, meaning that myjs wants to call datatables() but it has not finished loading the method definition from jquery.js?
http://konzertagentur-koerner.de/index.php/testStart
When using the dt debugger, it says that software is installed, but no table shown in the table tab.
What I did:
I use ajax to call a table.
I referenced the datatable.min.js, the jquery.js and myjs.js in the view file, I use the datatable() methode in the myjs file .
Should I post my files here?
When asking if jquery is installed, it says ye in myjs:
[code]
if (typeof jQuery == 'undefined')
console.log('jq not working');
else
console.log('jq works');
[/code]
Is it a problem related to asynchronous calls, meaning that myjs wants to call datatables() but it has not finished loading the method definition from jquery.js?
This discussion has been closed.