Skip to content
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
@hfgbarrigas

Description

@hfgbarrigas

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) ?

o_12e9c14762e94d31-1

PS: Ignore the 500 status... servers down...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions