DataTable showing "Processing..." on second AJAX call.

DataTable showing "Processing..." on second AJAX call.

narasimhakamathnarasimhakamath Posts: 10Questions: 1Answers: 0

When the page loads, the DataTable shows the necessary data.

But when I apply some filters, such as date (query) and then hit the 'Update' button, I do get the JSON response data the AJAX call made by the DataTable, but the UI does not render and it shows "Processing..." instead.

It was working fine in CakePHP 1.3.
Once we updated from 1.3 to 2.1.0, $.get() and $.post() started considering default data types as "text/html" instead of "json" and hence needed to change $.get() to $.getJSON() and $.post to $.ajax with necessary parameters for the data type.
I am not sure if this could be the reason for the failure of processing of the table.

Quick response is very much appreciated. Thanks!

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @narasimhakamath ,

    Generally, if the loading gets stuch with "Processing", it's because the returned JSON isn't of the expected format. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.