// 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); } }); }); } }

ADVERTISEMENT

ADVERTISEMENT

वाशिंगटन स्टेट यूनिवर्सिटी: एग्रीकल्चर डीन बने राज खोसला

वाशिंगटन स्टेट यूनिवर्सिटी ने राज खोसला को किया एग्रीकल्चर डीन के पद पर नियुक्त, जान लें उनके बारे में

राज खोसला /

 

वाशिंगटन स्टेट यूनिवर्सिटी ने प्रिसिजन एग्रीकल्चर के भारतीय-अमेरिकी एक्सपर्ट राज खोसला को कृषि, मानव और प्राकृतिक संसाधन विज्ञान महाविद्यालय (CAHNRS) का नया कैशअप डेविस फैमिली एंडोव्ड डीन नियुक्त किया है।

This post is for paying subscribers only

SUBSCRIBE NOW

Comments

Related