DataTables warning: table id= `{id}` - Ajax error

169 views
Skip to first unread message

Yi Huang

unread,
Aug 6, 2018, 1:18:03 PM8/6/18
to Shiny - Web Framework for R
I've shiny application using datatable and when network disconnected and resumed data table will throw a alert popup dialog in the browser

DataTables warning: table id= `{id}`  - Ajax error
For more information about this error, please see http://datatables.net/tn/7

I googled and read some suggestion and come with following code insert into server code.
    tags$script("$(function() {$.fn.dataTableExt.errMode = function(settings, tn, msg) { console.log(msg); }; });"),
    tags$script("$.fn.dataTable.ext.errMode = 'throw';"),
    tags$script("$.fn.dataTable.ext.errMode = 'none;"),

but none of above work, still see datatable warning msg anyway.

Can you help me with this? it is very hard to explain what is this error to end user. it becomes critical to resolving it with high impact now.

thank you.
Yi
Reply all
Reply to author
Forward
0 new messages