我有以下代码,我想在删除记录后刷新数据表。目前我必须手动刷新浏览器......我该怎么办?
<script type="text/javascript" charset="utf-8">
$(document).ready(function () {
var oTable = $('#example').dataTable({
"bProcessing": false,
"bServerSide": true,
"sAjaxSource": "server_processing.php",
"aoColumns": [{
"bVisible": true
}, {}, {}, {}, {}]
}).makeEditable({
sUpdateURL: function (value, settings) {
console.log(value, settings);
oTable.fnDraw();
return (value); //Simulation of server-side response using a callback function
},
sDeleteURL: "DeleteData.php",
"aoColumns": [{
cssclass: 'required'
}, {
indicator: 'Saving platforms...',
tooltip: 'Click to edit platforms',
type: 'textarea',
submit: 'Save changes'
}, {
indicator: 'Saving Engine Version...',
tooltip: 'Click to select engine version',
loadtext: 'loading...',
type: 'select',
onblur: 'cancel',
submit: 'Ok',
loadurl: 'EngineVersionList.php',
loadtype: 'GET'
}, {
indicator: 'Saving CSS Grade...',
tooltip: 'Click to select CSS Grade',
loadtext: 'loading...',
type: 'select',
onblur: 'submit',
data: "{'':'Please select...', 'A':'A','B':'B','C':'C'}"
}]
});
});
</script>