Hello ,
I am Using setInterval to fetch Api function every 10 second ,Like this :
//get driver location every 10 seconds
window.setInterval(function() {
$.get("<?= BasePath()?>/api/locations/<?= $appointments->id->CurrentValue?>", function(res) {
// get location
var pos = {
lat: +res[0],
lng: +res[1]
};
});
}, 10000); // 10000 milliseconds (10 second
Now what i need to do is disable upper loading bar on fetching , The loading bar it’s appear on fetching and it’s not looking so good ,
So what i can do to disable it please any idea ?
Press F12 in your browser and check the HTML, search for “ignoreURLs” and make sure your added path is outputted.
Your API (/api/locations/{id}) returns NaN, you better check and update your server side code that returns the array. Also see Migrating to v2022 about DBAL.