display url icon

  • 1
  • Question
  • Updated 6 months ago
javascript no display my iconThe requested URL /i/c/f/ICONhttp:/icons.wxug.com/i/c/k/nt_clear.gif.gif was not found on this server.
success: function(parsed_json) {
var location = parsed_json['location']['city'];
var temp_f = parsed_json['current_observation']['temp_f'];
var icon_url = parsed_json['current_observation']['icon_url'];

$('#weather').html("Current temperature in " + location + " is: " + temp_f + "icon " + '<img src =' + 'https://icons.wxug.com/i/c/e/chancesnow' +

icon_url + '.gif' + '>');
Photo of julio castillo

julio castillo

  • 2 Posts
  • 0 Reply Likes

Posted 6 months ago

  • 1
Photo of shared account

shared account

  • 1 Post
  • 0 Reply Likes
change: icon_url ,         to:       icon