how to get around this json call
First of all, you should first take care of the error in your console - “Uncaught Error: Bootstrap tooltips require Tether…”
You need to manually install this in settings/javascript/add-external-javascript, and it needs to go before your bootstrap:
https://npmcdn.com/tether@1.2.4/dist/js/tether.min.js
Once that’s done, I found navigator.geolocation to be a pain and I heard of other people having problems with it so I went a different route:
$.getJSON("http://ip-api.com/json", function (data) {
var lat = data.lat;
var lon = data.lon;
I’m sure someone smarter than me can get the navigator.geolocation to work just fine, but my solution hasn’t let me down yet.
1 Like
u also misspelled fahrenheit & celsius:
$('input[type=radio][name=farenheit-celcius]').change(function () {
Thank you very much for your tips and suggestions. its working now