DT works

DT works

anettlesanettles Posts: 1Questions: 1Answers: 0

Link to test case:
https://fec.summithosting.net/magnetics-air-coils/

Click a row on either the SMD Air Coils Round or SMD Air Coils Square tables to populate DataTables on the Electrical, Mechanical, and Packaging tabs.

Debugger code (debug.datatables.net):
Uncaught TypeError: rows is undefined datatables.js:8167:16
newRows https://fec.summithosting.net/wp-content/plugins/fusa-products/js/datatables.js?ver=1.7:8167
iterator https://fec.summithosting.net/wp-content/plugins/fusa-products/js/datatables.js?ver=1.7:7080
<anonymous> https://fec.summithosting.net/wp-content/plugins/fusa-products/js/datatables.js?ver=1.7:8163
methodScoping https://fec.summithosting.net/wp-content/plugins/fusa-products/js/datatables.js?ver=1.7:7247
success https://fec.summithosting.net/wp-content/plugins/fusa-products/js/fusa-magnetics-air-coils-lib.js?ver=1.0:215
jQuery 4
datatables.js:8167:16

Error messages shown:
No errors on screen, the program just stops.

Description of problem:
Loading three DataTables with values from AJAX calls. When you're logged in to the WordPress dashboard, it works. When not logged in, gets this error: Uncaught TypeError: rows is undefined datatables.js:8167:16

Where my code calls DT:

parts_grid.rows.add(response.data);

I have a similar AJAX call on another page that works perfectly regardless of logged in status. See it here: https://fec.summithosting.net/mlcc/

Click a row on any table on this page to populate a DataTable on the PartNumbers tab. A nearly identical AJAX call, works every time.

What would be different when you're logged in vs when you're not?

Answers

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

    Hi,

    Have you resolved this issue since you posted it? I've just taken a look and I'm not seeing the error you mention (tried both Firefox and Chrome).

    Thanks,
    Allan

This discussion has been closed.