I am trying to use a simple weather plugin and make it smart so it figures out what location a user belongs to by calling a geolocation service based on IP. Works in Chrome, FF. Not IE though. What is wrong or why is IE having issues with the following?? I seem to be having this cross-domain call issue here.. Full Fiddle: http://jsfiddle.net/XfhQK/1/
jQuery.getJSON('http://freegeoip.net/json/', function(data) {
jQuery.simpleWeather({
zipcode: data["zipcode"],
woeid: '',
location: '',
unit: 'f',
success: function(weather) {
html = '<h2>'+weather.temp+'°'+weather.units.temp+'</h2>';
html += '<ul><li>'+weather.city+', '+weather.region+'</li>';
html += '<li class="currently">'+weather.currently+'</li>';
html += '<li>'+weather.tempAlt+'°C</li></ul>';
jQuery("#weather").html(html);
},
error: function(error) {
jQuery("#weather").html('<p>'+error+'</p>');
}
});
});