Are you using the legacy version or the latest version of DataTables?
If you are using the latest one, are you still using "sAjaxSource" (which is backward compatible to a certain degree) or are you using "ajax" and the new parameters?
I'm trying to answer how I implement this datatable.
I've an AWS Free Tier Server with two jserver instances, one a jRDC2 server and the second jserver that build the Webpages with the data.
The jRDC2 server works as a middleware server to a centralized DB, accessible from client devices (Windows) and the second jserver, the Web server for displaying results.
In the Web server, there're several handler, and one of these is the handler with the datatable plugin; this handler queries the jRDC2 server in the Tablesessions Handler (using a DBRequestManager module -modified- to build an html table).
The id of the html table is the same that the Datatable (sessions); this way, Datatable plugin displays the html table in the Database grid format automatically.
(Attached are the TableSessionsHandler, DBRequestManager module and the external file with the html page to light up this scenario)
TableSessionsHandler loads the datatable configuration from a external file (attached also), in order to modify the datatable representation on Web Page without modifying the jserver app.
DBRequestManager.bas
'Prints the table
Public Sub PrintonlyTableHTML(tipusquery As String,Table As DBResult) As String
Dim sb As StringBuilder
sb.Initialize
sb.Append($"<table id="sessions" class="display" style="width:100%"><thead><tr>"$).Append(CRLF)
Hope I've explained clearly how this works on my server...