Hi Sander, Even get without params don't return anything... Status 0, data = nil. I must be something wrong with my code or interaction between Angular & Codeigniter.. The following don't work either... ends up in error, status=0, data=nil
The actual url works when tested in a browser... returns a sting of charachters, nothing else. .controller('AddAdvert', function($scope,$http) { $scope.go = function() { $http.get('http://www.url.se/index.php/io' ). success(function(data, status, headers, config) { alert("ss"); }). error(function(data, status, headers, config) { alert(status); }); } }); Den måndag 8 juni 2015 kl. 15:05:26 UTC+2 skrev Sander Elias: > > HI Johan, > > You are trying to GET data and you are using POST? > try: > $http.get('http://www.url.se/index.php/io?transid=' + encodeURIComponent( > "21")) > > Regards > Sander > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.