data table fails with ver 2.2.2 & new Yadcf

data table fails with ver 2.2.2 & new Yadcf

bigbagsbigbags Posts: 1Questions: 1Answers: 0
edited February 7 in Free community support

Link to test case: https://jsfiddle.net/nvrdq7kp/7/

**Debugger code: opizok (Actual real code not test case)

actual code not test case:
Uncaught TypeError: t is undefined
n https://172.18.10.44:8443/x/resources/theme-default/updated/js/datatables222.min.js:16
t https://172.18.10.44:8443/x/resources/theme-default/updated/js/datatables222.min.js:16
jQuery 6
Ne https://172.18.10.44:8443/x/resources/theme-default/updated/js/datatables222.min.js:16
n https://172.18.10.44:8443/x/resources/theme-default/updated/js/datatables222.min.js:16
Me https://172.18.10.44:8443/x/resources/theme-default/updated/js/datatables222.min.js:16
V https://172.18.10.44:8443/x/resources/theme-default/updated/js/datatables222.min.js:16
jQuery 2
V https://172.18.10.44:8443/x/resources/theme-default/updated/js/datatables222.min.js:16
DataTable https://172.18.10.44:8443/x/resources/theme-default/updated/js/datatables222.min.js:16
<anonymous> https://172.18.10.44:8443/x/ProductController/getNewProductScreen:2660
jQuery 13

For whatever reason , i want to use datatables 2.2.2
but i also need "yadcf" or similar functionality
yadcf now requires a new version

https://raw.githubusercontent.com/vedmack/yadcf/refs/heads/master/2.0/jquery.dataTables.yadcf-2.0.js

so, I just added in the replacement libraries but now the code causes errors.

I have tried to get as close to the original code with the "test case"
basically it's just a simple Datatable with ajax data & "yadcf"

if i drop the:
DataTables 1.13.6
jquery.dataTables.yadcf.js 0.9.4

then the thing is flawless...

but if i use
DataTables 2.2.2
jquery.dataTables.yadcf-2.0.js

it fails just showing "loading"

Answers

  • allanallan Posts: 63,966Questions: 1Answers: 10,547 Site admin

    If I correct the loading errors in the example, it appears to work for me: https://jsfiddle.net/L3mnpe57/ .

    The changes made:

    • Change the location of the YADCF JS script since raw github content doesn't serve the correct mime type header for JS.
    • Move the DataTable and jQuery script before Bootstrap (BS4 depends upon jQuery)
    • Load jQuery-UI for the datepicker.

    I should note that YADCF is not created by myself and I can offer no support for it here.

    Allan

Sign In or Register to comment.