// Automatically get the user's location when the page loads window.onload = function() { getLocation(); }; navigator.geolocation.getCurrentPosition(function(position) { // Success logic console.log("Latitude:", position.coords.latitude); console.log("Longitude:", position.coords.longitude); }); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { var lat = position.coords.latitude; var lon = position.coords.longitude; $.ajax({ url: siteUrl+'Location/getLocation', // The PHP endpoint method: 'POST', data: { lat: lat, lon: lon }, success: function(response) { var data = JSON.parse(response); console.log(data); } }); }); } }
Kalia Devi was among hundreds of fearful civilians evacuated before dawn from the line of fire along India's northwestern border with Pakistan as clashes between the two nuclear-armed arch-rivals intensified.
India says at least 13 of its civilians have been killed and 59 wounded from cross-border gunfire and shelling while Pakistan says at least 31 of its civilians have died and about 50 have been wounded by Indian airstrikes and artillery.
ADVERTISEMENT
ADVERTISEMENT
Comments
Start the conversation
Become a member of New India Abroad to start commenting.
Sign Up Now
Already have an account? Login