Datatable is stuck on Loading... / Processing

Datatable is stuck on Loading... / Processing

Alex67000Alex67000 Posts: 39Questions: 6Answers: 0
edited February 2013 in DataTables 1.9
Hi,

My Datatable works perfectly sometimes, and other times, no apparently reasons, my table just say "loading", or say the "processing" message.
My json is valid (i've checked).
Console give me those errors :

Uncaught TypeError: Cannot call method 'replace' of null jquery.dataTables.min.js:152
h.extend.html-pre jquery.dataTables.min.js:152
O jquery.dataTables.min.js:84
(anonymous function) jquery.dataTables.min.js:59
k.jqXHR.h.ajax.success jquery.dataTables.min.js:132
n jquery-1.7.1.js:2
o.fireWith jquery-1.7.1.js:2
w jquery-1.7.1.js:4
d jquery-1.7.1.js:4
44

Uncaught TypeError: Cannot call method 'replace' of null jquery.dataTables.min.js:152
h.extend.html-pre jquery.dataTables.min.js:152
O jquery.dataTables.min.js:84
aa jquery.dataTables.min.js:42
fnDraw jquery.dataTables.min.js:104
(anonymous function) match-me.php:167
k.jqXHR.h.ajax.success jquery.dataTables.min.js:132
n jquery-1.7.1.js:2
o.fireWith jquery-1.7.1.js:2
w jquery-1.7.1.js:4
d


---

Please help, i'm lost ^^

Alex

Replies

  • Alex67000Alex67000 Posts: 39Questions: 6Answers: 0
    I add that i'm using the fnreload ajax and i call my table with ajaxsource.txt
  • Alex67000Alex67000 Posts: 39Questions: 6Answers: 0
    If i press on the thead of the table (i can't see the tbody, in the tbody there is the "loading message"), so i can see the table. But it's strange and i don't want that.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Please link to a test case showing the issue. 99% of the time there will be a JSON error or a script error - which it is, and what is causing it, I don't know without a test case.

    Allan
  • Alex67000Alex67000 Posts: 39Questions: 6Answers: 0
    Hi thanks for answer.
    I can give you a test case BUT, you will have to register, and this bug appears once out of ten ........

    Can you first say me how to change the "Loading..." by "Loading... click on the table to show results" please.
  • Alex67000Alex67000 Posts: 39Questions: 6Answers: 0
    Okay i think it appears when a td is "blank" , contains nothing
  • Alex67000Alex67000 Posts: 39Questions: 6Answers: 0
    Theres a problem with : Json Encode, for special caracters like :
    ž . In the json a variable "testž" = null
This discussion has been closed.