Hi!
I am currently learning Angular and today I tried to get som data from a
server. I end up in error with 0 as status and null as data. The following
code is executed when a button is clicked.
.controller('AddAdvert', function($scope,$http) {
$scope.go = function() {
$http.post('http://www.url.se/index.php/io', "transid=" +
encodeURIComponent("21")
).
success(function(data, status, headers, config) {
alert("ss");
}).
error(function(data, status, headers, config) {
alert(status);
});
}
});
The url exists (Codeigniter) and returns data when tested in the browser. I
can change from post to get and remove the transid param, same result. Why?
Please help, I am stuck..
Best regards
--
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.