Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
Stefaan Walleghem
@lawfets
$(document).ready(function(){

  $("#testWeer").on("click", function(){

    var data = $.getJSON("http://api.openweathermap.org/data/2.5/forecast/city?id=3029799&APPID=88b75e0f51b809b601a2e4f76955cdf0", function(data){
      $("arrayWeather").html(JSON.stringify(data));


    });
  });
});
why don't I get any output with this function?
oh, btw, good evening , everyone
Clyde Lobo
@oppiniated
@lawfets did you check the console for errors?
Stefaan Walleghem
@lawfets
no errors showing
Waqas Abbasi
@Waqas909
@lawfets You need to add "&callback=?"
to the api link
Stefaan Walleghem
@lawfets
@Waqas909 xcuse me???
Clyde Lobo
@oppiniated
@lawfets btw arrayWeather are you missing a #
Stefaan Walleghem
@lawfets
after the key?
oeps yes,
Waqas Abbasi
@Waqas909
yea
``
http://api.openweathermap.org/data/2.5/forecast/city?id=3029799&APPID=88b75e0f51b809b601a2e4f76955cdf0&callback=?
@lawfets also make sure to check errors from Inspect element console
Stefaan Walleghem
@lawfets
@Waqas909 @oppiniated nothing yet
Clyde Lobo
@oppiniated
can you share the link ? @lawfets
Waqas Abbasi
@Waqas909
@lawfets You need to add Jquery!
Stefaan Walleghem
@lawfets
is json jquery?
Waqas Abbasi
@Waqas909
@lawfets From the settings, that could be the reason why
Stefaan Walleghem
@lawfets
@Waqas909 I'll try it out
Waqas Abbasi
@Waqas909
"$" = Jquery
Short way of writing Jquery
Clyde Lobo
@oppiniated
@lawfets json != jquery
Waqas Abbasi
@Waqas909
Json = JavaScript Object Notation
Ellias
@Tron2097
Hey guys I would like some feed back on my tribute page if possible.Please be as harsh as possible. thanks http://codepen.io/Tron2097/pen/QGMJML
Clyde Lobo
@oppiniated
json is a data representation format.
Waqas Abbasi
@Waqas909
Jquery is just a tool
走你飛艇
@gofighting123
this is a book
Stefaan Walleghem
@lawfets
yes but why do I have to add jquery then?
and btw, it doesn't work
Waqas Abbasi
@Waqas909
Because Jquery is not a built-in tool
Stefaan Walleghem
@lawfets
and I added jquery in the html file
Clyde Lobo
@oppiniated
@lawfets jquey is a js library
Waqas Abbasi
@Waqas909
no, you need to add it through setting @lawfets
Stefaan Walleghem
@lawfets
I did, but it still doesn't work
Waqas Abbasi
@Waqas909
Save it
So we can see .-.
Clyde Lobo
@oppiniated
@lawfets do you have a link we can see?
Stefaan Walleghem
@lawfets
@oppiniated how do you mean? I gave you the codepen link
Waqas Abbasi
@Waqas909
@lawfets Why are you using ".html"
.html is used to add html
Stefaan Walleghem
@lawfets
because I tried everything and nothing seems to work
I even tried return data;
and I saw in the challenge they did it that way, so I tried
Waqas Abbasi
@Waqas909
in the challenge they do it because they add html
@lawfets Create a <p id="#test> </p>
then use .text
target test