This repository was archived by the owner on Feb 2, 2025. It is now read-only.
This repository was archived by the owner on Feb 2, 2025. It is now read-only.
Double request with server side #146
Closed
Description
Hi,
Im using the latest version of angular-datatables and, noticed that there's a double request with server side... I traced the error to the following snippet:
$timeout(function () {
DTRendererService.hideLoading($elem);
// Condition to refresh the dataTable
if (oTable) {
var ajaxUrl = options.sAjaxSource || options.ajax.url || options.ajax;
console.info("Loading data! ");
oTable.ajax.url(ajaxUrl).load();
} else {
oTable = DTRendererService.renderDataTableAndEmitEvent($elem, options, $scope);
}
}, 0, false);
For the moment i commented the timeout being applied... can you explain me why are you using $timeout (i understand that you're trying to force the rendering of datatables but removing the timeout has no repercussions) ?
PS: Ignore the 500 status... servers down...