I have a strange problem with Datatables.
On localhost(port 8080) I’m trying to populate a Datatable thought ajax and JSON. The call (and the html page of Datatable itself) is on classic asp on IIS. After a lot of retries I manage to get Datatables to work. As usual F12 developer tools were always on to help me on messages and errors. When I closed F12, the table was not populating at all. It shows only the message loading…
I’ve try to clear cache, to prevent from caching, nothing. When I reopen F12, it works like a charm. Here is the code from client-side:
var oTable = $('#table_list').dataTable({
"bJQueryUI": true,
"sDom": 'l<"H"Rf>t<"F"ip>',
"ajax": {
"url": " list_new.asp",
"type": "POST",
"data": function (d) {
d.col1 = ID;
d.col2 = name;
d.col2 = date;
}
},
"columns": [
{ "data": "ID" },
{ "data": "FullName" },
{ "data": "Locations" },
{ "data": "date" },
{ "data": "status" }
]
});
Any thoughts?
Since this is my first post in StackOverflow, if I forget something, please let me know.