Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
data table when filled with json, jquery and webserice run fine on local machine but when publish on server it is giving Failed to load resource: the server responded with a status of 500 (Internal Server Error)
$.ajax({
url: "testing.asmx/Get_DashBoardData",
type: "post",
dataType: "json",
success: function (data) {
$('#MO').dataTable({
data: data,
"bInfo": false, //Dont display info e.g. "Showing 1 to 4 of 4 entries"
"paging": false,//Dont want paging
"bPaginate": false,//Dont want paging
"bFilter": false, //hide Search bar
columns: [
{ 'data': 'abc' },
{ 'data': 'cde' },
]
});
},
error: function (request, status, error) {
alert(request.responseText);
}
});
Exception Occur is :
Exception: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the
arguments objects for calls to them at Function.invokeGetter (<anonymous>:1:142)]
Internal Server Error
jquery.min.js:2 [Violation] 'load' handler took 21304ms
jquery.min.js:2 [Violation] 'setTimeout' handler took 5863ms
Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.
Answers
This isn't a problem with DataTables - the issue is with the Ajax call that's getting the data for DataTables. This SO thread might help, it has the same error - if not, I'd suggest asking or searching more there.
Colin