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
  1. "text/javascript">  
  2. startJsonSession();  
  3. function startJsonSession(){  
  4. $.ajax({  
  5. url: "next28.php",  
  6. cache: false,  
  7. dataType: "json",  
  8. complete: function(data) {  
  9. pid = data.Latitude;  
  10. alert(pid);  
  11. }  
  12. });  
  13. }  
 
// put your ajax call in to on efunction