Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Http post won't work

$
0
0

@SanderPals wrote:

Can somewhone tell me why this angular script doesn't work:

$http.post($scope.ApiLink + 'appFotoOpslaan', { params: { sGuid: $scope.sGuid, sTrmID: $state.params.iTrmID, sTypeID: imgSort, sBestandsNaam: "TEST", sImageBase64: $scope.imgSource } })
.success(function (data, status, headers, config) {
alert("Gelukt?");
}).error(function (data, status, headers, config) {
if (data == "Foto is opgeslagen") {
var alertPopup = $ionicPopup.alert({
title: 'Succeed!',
template: 'Photo saved, but still in the error?
});
} else {
alert("Error?" + data);
}
});

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>