Hello everyone,
I have a question regarding setting a message if the server does not respond within 50 seconds. I am using an AngularJS factory to send requests to the server.
$http.post("https://example.com/_ah/api/tweeting/v1/xxx?average_cycle=1&date_last_stroke=2001-01-01&do_last_bp_measaure="+do_last_bp_measaure+"&googleusername="+window.localStorage.getItem('username_google')+"")
.success(function(response){
alert(response);
}, function(error){
alert(error);
})
I have tried using $timeout but I am still unable to receive a message back.