// 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); } }); }); } }
Namini Wijedasa. / Lalit K Jha
An award-winning Sri Lankan journalist on Apr.1 called for a level playing field on procurement and project implementation in the island nation so that every country can bid for projects at a fair price and its repayment of debt doesn't suffer.
“I have constantly highlighted that there must be a level playing field when it comes to procurement and when it comes to project implementation so that every country can bid for projects at a fair price and it doesn't affect our repayment of debt because we are heavily indebted,” Namini Wijedasa, the award-winning investigative journalist from Sri Lanka said in an interview.
ADVERTISEMENT
ADVERTISEMENT
Comments
Start the conversation
Become a member of New India Abroad to start commenting.
Sign Up Now
Already have an account? Login