Datatables and PHP


Topic: Datatables and PHP

JP1968 pro asked 2 months ago

Expected behavior Datatable to keep its styling and functionality. Actual behavior When saved as PHP loses its styling and functionality. Resources (screenshots, code snippets etc.) enter image description here


Krzysztof Wilk staff answered 2 months ago

Hello!

Can you open your file with this datatable in browser, then open console using f12 key, make screen from your console and from "Network" overlap? I want to see what console shows us and be sure that all assets are loading properly.


JP1968 pro answered 2 months ago

Here is the table with no PHP:

enter image description here

Here is the table with PHP:

enter image description here

Here is the PHP with no errors on the page:

enter image description here

Here are the unchanged assets from the index page:

enter image description here


Krzysztof Wilk staff answered 2 months ago

Ok, everything looks fine. Can you make screenshot from this overlap?

enter image description here


JP1968 pro answered 2 months ago

Everything works fine when I went to the jquery datatables website and copied the CDN's. But when I use the mdbootstrap links the datatables no longer work when programming with PHP. I have tried several different ways but still no luck. I verified the location of the files etc. I will just keep using the CDN's at this point since they are working.


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: jQuery
  • MDB Version: 4.8.4
  • Device: Macbook Pro
  • Browser: All
  • OS: Mojave 10.14.5
  • Provided sample code: No
  • Provided link: No