While working on jQuery DataTable(AJAX request) I see below error in console, can anybody suggest what I am doing wrong? Thanks in advance.
GET http://www.someurl.com/page/someservice?callback=jQuery2140051484344992786646_1438166663698&_=1438166663699 net::ERR_NAME_NOT_RESOLVED jQuery.min.js:4
jQuery Code
var url = "http://www.someurl.com/page/someservice", // dummy url
authToken = "afdaafd1122q200afdjaslfdjalf", // dummy data
oTable = $('#daSelector').dataTable( {
"ajax": {
"url": url,
"type": "GET",
"dataType": 'jsonp',
"serverSide": true,
"headers": {
'Authorization': 'bearer ' + authToken
}
},
"sAjaxDataProp": "",
"bAutoWidth": false,
"columns": [
{ "data": "Name" },
{ "data": "Id" },
{ "data": "Services" }
]
});
var url = "http://www.someurl.com/page/someservice", // dummy url
authToken = "afdaafd1122q200afdjaslfdjalf", // dummy data
$.ajax({
"url": url,
"type": "GET",
"dataType": 'jsonp',
"serverSide": true,
"sAjaxDataProp": "",
"headers": {
'Authorization': 'bearer ' + authToken
},
"success": function (json) {
$('#daSelector').dataTable(json);
}
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.