Can't get quotes to load

Can't get quotes to load
0

#1

I’m a bit stuck trying to just get the quotes to load.

I have an initial pull just so my page should show an initial quote before clicking the button and then a second pull once the button is clicked, but neither seem to work to show the quote.


#2

I had this same problem.

For your API use this instead: //api.forismatic.com/api/1.0/?method=getQuote&format=jsonp&jsonp=?&lang=en&callback=?. You pretty much got everything right it’s just that the API link you were using doesn’t work on codepen for some reason, I’m not sure why…

I swapped the two API links on your project and got it to work.


#3

That worked, thank you very much