Here is code.When i run this code it's to get the data product_id, it's showing alert undefined.but I want to get Latitude Longitude with every 10 secs update.kindly share any idea ASAP
// put your ajax call in to on efunction
function apical()
{
startJsonSession();
function startJsonSession(){
$.ajax({
url: "next28.php",
cache: false,
dataType: "json",
complete: function(data) {
pid = data.Latitude;
alert(pid);
}
});
}
}
for more details
https://www.w3schools.com/js/js_timing.asp
https://www.w3schools.com/js/js_timing.asp