datatables-angular-directive icon indicating copy to clipboard operation
datatables-angular-directive copied to clipboard

Ajax error: Cannot read property 'protocol' of undefined

Open davidedonattini opened this issue 11 years ago • 0 comments

Hi, I try to replicate the demo code of this page: http://maktouch.github.io/datatables-angular-directive/src/examples.html but if I change the sAjaxSource attribute value with my api url, I got this error in Chrome console: TypeError: Cannot read property 'protocol' of undefined at Ib (http://localhost:8888/bower_components/angular/angular.min.js:120:460) at r (http://localhost:8888/bower_components/angular/angular.min.js:69:407) at Function.r.(anonymous function) (http://localhost:8888/bower_components/angular/angular.min.js:73:376) at options.fnServerData (http://localhost:8888/bower_components/datatables-angular-directive/angular.datatables.js:55:23) at _fnBuildAjax (http://localhost:8888/bower_components/DataTables/media/js/jquery.dataTables.js:2373:27) at _fnInitialise (http://localhost:8888/bower_components/DataTables/media/js/jquery.dataTables.js:3117:5) at HTMLTableElement. (http://localhost:8888/bower_components/DataTables/media/js/jquery.dataTables.js:6301:5) at Function.n.extend.each (http://localhost:8888/bower_components/jquery/dist/jquery.min.js:2:2880) at n.fn.n.each (http://localhost:8888/bower_components/jquery/dist/jquery.min.js:2:847) at DataTable (http://localhost:8888/bower_components/DataTables/media/js/jquery.dataTables.js:5838:8)

I search this issue on the web and I find this solution that work: http://stackoverflow.com/questions/21347542/cannot-read-property-protocol-of-undefined

You know this problem? Can you fix it? Thank.

davidedonattini avatar May 29 '14 08:05 davidedonattini