bServerSide in IE problem

bServerSide in IE problem

akmalkhonakmalkhon Posts: 15Questions: 0Answers: 0
edited January 2010 in General
When I make bserverside: false. no data is fetched in IE.
is there any solution? Using simple example provided by Datatables.
Datatables 1.6 is used;

Tank you.

"bProcessing": true,
"bServerSide": false,
"sAjaxSource": "testTable.php",
"fnServerData": function ( sSource, aoData, fnCallback ) {
$.getJSON( sSource, aoData, function (json) {
fnCallback(json)
} );
},

// php file out put
while ( $aRow = mysql_fetch_array( $rResult ) ){
$sOutput .= "[";
$sOutput .= '"",';
$sOutput .= '"'.addslashes($aRow['HRID']).'",';
$sOutput .= '"'.addslashes($aRow['FirstName']).' '.addslashes($aRow['LastName']).'",';
$sOutput .= '"'.addslashes($aRow['Organization']).'",';
$sOutput .= '"'.addslashes($aRow['Address1']).' '.addslashes($aRow['Address2']).'",';
$sOutput .= '"'.addslashes($aRow['Country']).'",';
$sOutput .= '"'.addslashes($aRow['Region']).'",';
$sOutput .= '"'.addslashes($aRow['Telephone']).'",';
$sOutput .= '"'.addslashes($aRow['Email']).'",';
$sOutput .= '"';
if ($aRow['BasicStatus'] == 'Basic'){
$sOutput .= 'Basic';

if ($aRow['AdvancedStatus'] == 'Advanced'){
$sOutput .= ', ';
$sOutput .= 'Advanced';
};
};

$sOutput .= ' " ';
$sOutput .= "],";
}

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi akmalkhon,

    Two things to check initially: is the json valid (www.jsonlint.com) and is sEcho being correctly returned?

    Allan
This discussion has been closed.