I am using jquery Datatable plugin. The init code is like below
$('#Table').dataTable( {
"sAjaxSource": url
...
...
});
which gets fired on click of a button.Now on click of that button again I want to get the dataTable with a different url. I have tried using without success.Please suggest.
if (typeof obj == 'undefined') {
obj = $('#Table').dataTable( {
"sAjaxSource": url
...
...
})
}else
{
obj.fnClearTable(0);
obj.fnDraw(false);
}