serverside processing ajax call is not working

serverside processing ajax call is not working

sureshkumaranbusureshkumaranbu Posts: 1Questions: 1Answers: 0

Can someone help me the below issue. I am using angular datatable on top of jquery datatable plugin. I have already integrated client side processing, in order to imporve the performance I am trying to integrate server side processing for the table. I am not sure where I am missing out something. The ajax call is not happening in the below code.
1. No error thrown.
2. How do i check wheather the ajax call is success or error, I am not able to break point in any line within the properties.
3. I dont see any http request in "network" tab.
4. How do i console the data which fetched from the url.

your valuable advise is much appericiated. thanks in advance.

var url1 = 'http://www.json-generator.com/api/json/get/cbEfqLwFaq?indent=2';
$scope.dtOptions = DTOptionsBuilder.newOptions()
.withOption('ajax', {
url: url1,
contentType: "application/json; charset=utf-8",
type:"GET",
failure: function (data) {
alert(error);
}
})
.withOption('processing', true) //for show progress bar
.withOption('serverSide', true) // for server side processing
.withPaginationType('full_numbers') // for get full pagination options // first / last / prev / next and page numbers
.withDisplayLength(10) // Page size
.withOption('aaSorting',[0,'asc']) // for default sorting column // here 0 means first column

.withDOM('<"html5buttons"B>lfrtip')
This discussion has been closed.