javascript - simpleweatherjs plugin: Firefox asks me to share my location but wont display current temperature -



javascript - simpleweatherjs plugin: Firefox asks me to share my location but wont display current temperature -

hi have working weather script simpleweatherjs find weird because samples found there works on diff browser when customized plugin combining autoupdate , geolocation , help our fellow fellow member here @ stack have manage create run on chrome because when tested @ firefox asks me if want share location after allowed nil happend

here whole code

<script type="text/javascript"> $(document).ready(function() { getweather(); setinterval(getweather, 6000); }); function getweather() { navigator.geolocation.getcurrentposition(function(position) { var location = (position.coords.latitude + ',' + position.coords.longitude); var woeid = undefined; $.simpleweather({ location: location, woeid: woeid, unit: 'c', success: function(weather) { html = '<h2><i class="icon-'+weather.code+'"></i>' + weather.temp + '&deg;' + weather.units.temp + '</h2>'; html += '<ul><li>' + weather.city + ', ' + weather.region + '</li>'; html += '<li class="currently">' + weather.currently + '</li></ul>'; $("#weather").html(html); }, error: function(error) { $("#weather").html('<p>' + error + '</p>'); } }); }); } </script>

can please tell me did go wrong here?

developer of simpleweather here. i've had few people study issue , several others don't have problems. did little digging , there seems issues firefox , geolocation people. found post mozilla support , several issues here on stackoverflow problem. not sure if solution solves problem.

javascript jquery firefox weather-api

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -