I'm not sure then, without being able to add an identifier to it via the HTML, then targeting it like that.. I don't know
Oh man it is so annoying how codepen handles some things for you (even forbids you to handle them yourself) and that makes you forget about other things. When I am doing the challenges, the first stuckness is always that I forget to add jQuery and then spend 10 -30 minutes annoyed why it doesn't work even though everything seems to be in order.
ok, thx man
w3 schools says do it without the . at the front
But I have a question. What are the (dis)advantages of using $.ajax and $.getJSON. They seem to be doing the same thing.
@kirbyedy ok, I guess that answers my question. I however don't see how .getJSON is so much easier. I was using it up until now and now trying to .ajax for the first time and it just seems so much easier to read and to construct than stitching together an url in .getJSON. But I guess I might very well change my opinion when I get more experience with both.
achudoz sends brownie points to @kirbyedy :sparkles: :thumbsup: :sparkles:
hey guys, My twitch viewer project works fine it displays the information but the links you click won't go all the way through to the channel although if you type in the normal channel it does can anyone just have a look please :) thank you in advance http://codepen.io/yoerivw/full/YGNbLQ/
@GoingAllTheWayUp look at the geolocation leson of the JSON/AJAX unit right before these challenges. the code for that is right there
@kirbyedy it seems it is the right link, I just can't get through to the real channel when I click
not even FCC link
I clicked on the freecodecamp and it went
@Yoerivw maybe it is something on my browser let me try another browser :)
the other channel not
@Yoerivw should be working now, i think it was server related.
wait, this is really odd.
If i right click the link and open in new tab, it works.
yes mine too, maybe it could have something to do with the way I target it to another tab ?
with the target=_blank statement ?
@Yoerivw it works when rightclick/open in new tab. and you ARE using target="_blank" so i guess it should work. I heard that codepen has issue with opening links, so it might be it
ok, thank you for the help in checking ! I'll try and see if there isn't an option to open links in new tabs except just new windows.
@Yoerivw what I sometimes do is that I created a free webhosting account and when I am convinced that something should work but might be an issue of codepen, I try to run it over there. Plus it trains you to remember and use <doctype>,<meta>, <script>, etc. which you never use in codepen
goingallthewayup sends brownie points to @achudoz :sparkles: :thumbsup: :sparkles:
Hi folks! I’ve been trying to learn a little about charts in ChartJS. Specifically, I want to add a linear gradient to a line chart. I found a few working examples using ChartJS v1.2, but the library is now on ChartJS v2.4. So I adapted those examples making sure only to change the most necessary information for the new API, and I just cannot figure out why I’m not able to show a gradient. The v1 API is not different in this regard from the v2 API (neither one explicitly offers the ability).