0
Use the $http
from Angular JS to work with web-services, someone knows how to tell me how to create a progressibar using this method?
$http.get( "json.php?action=3"
+ "&id=" + id
+ "&val=" + $("#v"+id).val()
+ "&ajax_select_tab=" + ajax_select_tab
+ "&ajax_where=" + ajax_where ).then(function (result) {
if (result.status === 200) {
var chave = rows_.indexOf(ajax_select_tab[1]);
$scope
.rows[chave]["array_selec_data"] = result.data;
} else {
alert("Erro ao carregar o arquivo JSON!");
}
});
wanted to use the bootstrap bar, but I can’t get a way to ajax and flush the request.
You want it to show an X% progress or just those "Loading" where there is no tracking of how much has been processed?
– Andre.Santarosa
I need the percentage to popular the pub
– HUGO PABLO
I believe that the way your request is structured this will not be possible, because there is no control of what is being processed on the server, for that Voce would have to have push notifications passing the state of what is running on the server side... What could be done is put that "processing bar"
– Andre.Santarosa