Datatable inside jquery tab shows $output below the table

Datatable inside jquery tab shows $output below the table

mangiamangia Posts: 6Questions: 0Answers: 0
edited January 2012 in General
Hi there

I placed Datatable inside jquery tab and the table works fine but below the table I have the next output

{"sEcho":0,"iTotalRecords":"12","iTotalDisplayRecords":"12","aaData":[]}

Does anyone has idea why and how to remove this part

Replies

  • John ArcherJohn Archer Posts: 56Questions: 1Answers: 0
    Well, you use server side processing, right?

    I assume, somewhere in your PHP code you do an echo json_encode($output); where $output is the array that is shown in your code. I guess, you do that echo output twice!? The first assures that your DT is generated correctly, and the second is this output you see.
  • mangiamangia Posts: 6Questions: 0Answers: 0
    Huh... Shame on me.. I defined $output variable twice... Sorry !!!
This discussion has been closed.