Delete cookies
Delete cookies
I have code:
[code]
function DataTable() {
$('#displayData').dataTable( {
"bProcessing": true,
"bServerSide": true,
"bStateSave": true,
"bSort": false,
"bFilter": false,
"aoColumns": [
{ "mDataProp": "name" }
],
"fnServerData": function ( sSource, aoData, fnCallback, oSettings ) {
oSettings.jqXHR = req.query('GET', url, aoData, function(responseServer, status, xhr) {
json = responseServer.dataListCustomer;
if ( json.sError ) {
oSettings.oApi._fnLog( oSettings, 0, json.sError );
}
$(oSettings.oInstance).trigger('xhr', [oSettings, json]);
fnCallback( json );
//HERE
}, function(jqXHR, textStatus, errorThrown) {
var exception;
exception = jQuery.parseJSON(jqXHR.responseText);
return showError(exception);
});
}
} );
}
[/code]
Where is HERE I want delete cookies which dataTable saved, how can I do that?
[code]
function DataTable() {
$('#displayData').dataTable( {
"bProcessing": true,
"bServerSide": true,
"bStateSave": true,
"bSort": false,
"bFilter": false,
"aoColumns": [
{ "mDataProp": "name" }
],
"fnServerData": function ( sSource, aoData, fnCallback, oSettings ) {
oSettings.jqXHR = req.query('GET', url, aoData, function(responseServer, status, xhr) {
json = responseServer.dataListCustomer;
if ( json.sError ) {
oSettings.oApi._fnLog( oSettings, 0, json.sError );
}
$(oSettings.oInstance).trigger('xhr', [oSettings, json]);
fnCallback( json );
//HERE
}, function(jqXHR, textStatus, errorThrown) {
var exception;
exception = jQuery.parseJSON(jqXHR.responseText);
return showError(exception);
});
}
} );
}
[/code]
Where is HERE I want delete cookies which dataTable saved, how can I do that?
This discussion has been closed.
Replies
Allan