The datatable Js is not working with the wordpress4.4 why?

The datatable Js is not working with the wordpress4.4 why?

libinantolibinanto Posts: 3Questions: 1Answers: 0

The datatable Js is not working woth the wordpress4.4 why. ave anyone have the solution for this. I understand it was a js error. But how to solve this?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin

    Per the forum rules, please link to a test case showing the issue.

    Allan

  • libinantolibinanto Posts: 3Questions: 1Answers: 0

    Thank you Allan to come forward to help me.but I got the solution for my question after publish this post.hello everybody here I wish to share the solution with you.
    The dataTable 1.10.3 is not comfortable with WordPress 4.4 so change the script src by dataTable1.10.10 to get the js works.then your pagination and all js will work.it works for me ..I am replying it by mobile. Tomorrow morning I will post it clearly. Thanks for dataTable to work with me

  • libinantolibinanto Posts: 3Questions: 1Answers: 0
    edited December 2015

    hi , because of the Wordpress 4.4 update, The dataTable 1.10..3 is not works . So it leads to the following error
    Uncaught TypeError: Cannot use 'in' operator to search for 'length' in .

    To solve this please change the source script from

    script type='text/javascript' src='http://cdn.datatables.net/1.10.3/js/jquery.dataTables.min.js' /script

    to the latest version of the sript like thefollowing one

    script type='text/javascript' src='http://cdn.datatables.net/1.10.10/js/jquery.dataTables.min.js' /script

    // Please see the version it changes from 1.10.3 to 1.10.10.
    I know this post will helpful to someone who need the help like me.
    Thanking you dataTable. And special thanks to allan to come forward to help me.

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin
    Answer ✓

    Hi,

    Thanks for posting back with the update. Yes, the early 1.10.x releases had a bug that caused an issue with the very latest versions of jQuery. This was resolved around 1.10.6/7. The latest version works correctly with the latest jQuery.

    Allan

This discussion has been closed.