Buttons and select not loading in time
Buttons and select not loading in time
olwo
Posts: 4Questions: 1Answers: 0
Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
This question has an accepted answers - jump to answer
Answers
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
Hi,
I am using datatables with select and buttons extension. The problem: Although datables is loaded first, these extensions through errors like
"dataTables.select.min.js:4 Uncaught TypeError: Cannot set properties of undefined (setting 'select')" and
"dataTables.buttons.min.js:4 Uncaught TypeError: Cannot read properties of undefined (reading 'ext')
After a few reloads it works but that seems just to be an "accident"
What is wrong ?
sorry, to be more exact:
there is a script that loads all needed styles and scripts:
and this script loads the following files:
the resulting htmlhas the correct order of files, but still i get the error
It sounds like the files are being loaded out of sequence, however logging at your code there it looks like they are being requested in the correct order. It is almost as if they have their
async
property set on thescript
, but I can see in the code above that isn't the case.Can you give me a link to your page showing the issue please?
Allan
solved it and it was a loading issue. Thanks for your help