Sameer Khan

Sameer Khan

  • 1.7k
  • 202
  • 17.6k

Data table filled with json, jquery and webservice

Jun 1 2020 1:07 PM
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); } });

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (3)