I have checked that the web service is called and executed. Works fine and 
the results is echoed to the screen. But Angular don't receive it and don't 
put the result into data.
Anyone?

Den måndag 8 juni 2015 kl. 15:15:47 UTC+2 skrev Johan Printz:
>
> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to