iSortCol_0 set in datatables, not passed to php ?

iSortCol_0 set in datatables, not passed to php ?

QuentinQuentin Posts: 21Questions: 0Answers: 0
edited July 2012 in DataTables 1.9
Hi,

I'm using DataTables the server side way.

First of all, when enabling Firebug, it complain about
[code]if ( json.sEcho !== undefined )[/code] line 1886 in datatable.
I searched the forum. I only found answers about Tabletools.

Secondly, all was working (Firebug disabled) until i change something (don't remember what :/ ) and sort is not working anymore.
When i check in firebug, all seems ok especially :
[quote]
...
bSortable_5 true
iSortCol_0 5
iSortingCols 1
...
[/quote]
But in my server side script, it never enter this
[code] /*
* Ordering
*/
$sOrder = "";
if ( isset( $_GET['iSortCol_0'] ) )
{
$test = "ici";
$sOrder = "ORDER BY ";
for ( $i=0 ; $i

Replies

  • QuentinQuentin Posts: 21Questions: 0Answers: 0
    I checked php logs, i have notices of Undefined index for some bSearchable variables.

    Is someone having an idea on why some variables are not set in php ?
    All is working but sorting is not.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Can you run your table through the DataTables debugger and give us the debug code please?

    Allan
This discussion has been closed.