.processing(true) error

.processing(true) error

James3James3 Posts: 9Questions: 2Answers: 0
edited April 2 in Free community support

After upgrading to v2 last week (YES!!), I've only encountered a single issue (which is amazing!).

I sometimes call $tbl.processing(true) based on certain events. This call no longer works in v2, and I receive the following error:

Uncaught TypeError: Cannot read properties of undefined (reading '_fnProcessingDisplay')

Anything I can do to restore this functionality? From what I've read, this is part of DT.net 2 as well.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,205Questions: 1Answers: 10,415 Site admin
    Answer ✓

    Sounds like you might have the legacy API plugin that added .processing() to DataTables v1? Delete that and I would expect it to work.

    If that doesn't help address it, can you link to a page showing the issue please?

    Allan

  • James3James3 Posts: 9Questions: 2Answers: 0

    Here are my includes. Would any of these do it?

    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs5/dt-2.0.3/fh-4.0.1/datatables.min.css">
    <script defer type="text/javascript" src="https://cdn.datatables.net/v/bs5/dt-2.0.3/fh-4.0.1/datatables.min.js"></script>
    <script defer src="https://cdn.datatables.net/rowreorder/1.5.0/js/dataTables.rowReorder.min.js"></script>
    

    I'll work on getting a page created to show the issue in jsfiddle.

  • allanallan Posts: 63,205Questions: 1Answers: 10,415 Site admin

    Nope - that should work okay, as shown here: https://live.datatables.net/sikipucu/1/edit (nasty styling, as I haven't included Bootstrap 5's CSS).

    Allan

  • James3James3 Posts: 9Questions: 2Answers: 0

    Every time I feel like I've done my due-diligence before posting, you prove me wrong.

    I was unable to reproduce in a fiddle. I dug deeper and found the code below, likely taken from this post years ago.

    My apologies for wasting your time...again.

  • allanallan Posts: 63,205Questions: 1Answers: 10,415 Site admin

    No worries. Good to hear you've got it working as it should be now.

    Allan

Sign In or Register to comment.