Editor buttons don't work even on editor.datatables.net
Editor buttons don't work even on editor.datatables.net
Hello everyone. I am new to Editor, just subscribed, and am trying to get started. I used the generator to create some code for my PHP / Postgres DB table, and when I clicked run now, the New, Edit, and Delete buttons did nothing on the Editor website.
So I downloaded the code to my local server and ran it with a real DB, and they still did nothing. I tried two workstations, and three different browsers, Chrome, Safari, and Firefox developer, and the buttons do nothing consistently.
Link to test case: https://editor.datatables.net/generator/run/table.2e0da77a-90f6-11ed-ae1c-002590dcfa5d.html
Debugger code (debug.datatables.net): 15 tests complete. No failures or warnings found! If I try and upload the report, Datatables Debugger says: "404 - Page not found - Sorry, the debug trace you are looking for does not exist or is private."
Error messages shown: "Uncaught TypeError: can't access property "Modal", u is undefined" shown in Firefox Developer Tools.
Description of problem: New, Edit, and Delete buttons do nothing.
Thank you so much for any pointers.
This question has an accepted answers - jump to answer
Answers
https://editor.datatables.net/generator/run/table.14e73f95-9100-11ed-ae1c-002590dcfa5d.html
Just tried the above with the generator and it worked like a charme.
Tried it in Chrome and Firefox.
Thank you for your reply, but you didn't test my configuration. Please click the "link to test case" I provided and test that? Perhaps it has something to do with the column names, or maybe the use of an _ underscore _ ? I really have no clue
But this generated code does not work for me:
https://editor.datatables.net/generator/run/table.2e0da77a-90f6-11ed-ae1c-002590dcfa5d.html
I tried to upload a screenshot, but the forum says, "file failed to upload.
The site deleted that one already. Here is another one:
https://editor.datatables.net/generator/run/table.7f53312a-9105-11ed-ae1c-002590dcfa5d.html
Thanks for the link. It looks like Bootstrap 5 isn't being included on the page - you need to select the option to include the full Bootstrap 5 library (as well as the option for the Bootstrap 5 integration styling):
Allan
Thank you, Allan! That fixed it. I was thrown by the "Don't select if you already have Bootstrap 5..." label because I do, actually. But selecting that option made the generated buttons work for me, so I am happy
Yes, its a bit of a funny one that. That demo page doesn't have Bootstrap embedded into it by default - hence the need for it. But then when you download it, you'd need to uncheck that option! I'll look at just including Bootstrap on the page if it wasn't checked.
Allan