Try this
Initially you initialized the table so first clear that table
$('#example').dataTable().fnDestroy();
Then initialize again after ajax success
$('#example').dataTable();
Like this
<script type="text/javascript">
$('.active').live('click', function(event) {
$('#example').dataTable().fnDestroy();
var elem = $(this);
var url = $(this).attr('href'); alert(url);
$.ajax({
url: url,
success: function(result)
{
var dtr = $("#test", result);
$('#test').html(dtr);
$('#example').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sScrollY": 200,
"sScrollX": "100%",
"sScrollXInner": "110%",
"sSwfPath": "../mymedia/savefiles/copy_csv_xls_pdf.swf"
}
} )
.columnFilter({
aoColumns: {{columnfilters|safe}}
});
}
});
event.preventDefault();
event.stopPropagation();
});
</script>