bServerSide in IE problem
bServerSide in IE problem
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 .= "],";
}
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 .= "],";
}
This discussion has been closed.
Replies
Two things to check initially: is the json valid (www.jsonlint.com) and is sEcho being correctly returned?
Allan