Random Quote Machine - JSON data don't appear

Hello guys, I really dont know why my JSON data are not call… looking for some help !
Thanks !

http://codepen.io/steffanek/pen/GjbqWQ

I think you should use JSONP instead of JSON, didn’t have much time to check your code but this is a common topic in the forum, with the wiki search Project the same thing will happen :wink:

Nope, even if I put format=jsonp its not working :slight_smile: heh

Thanks @P1xt, however i cannot find on their documentation anything about jsonp .

Could you explain me briefly this jsonp format cuz I check on stackoverflow but its not pretty clear for me?

Because, when I put this url : http://api.forismatic.com/api/1.0/?method=getQuote&format=json&lang=en
on my browser, I have access to data, so I dont understand why my getJSON fuction couldn’t access to it.
Secondly, why the url should end by : “&jsonp=?” ?

I think you should find a better API. I was chatting to a guy trying to use this API and it was rubbish.

Hi there, just tell everybody that this url P1xt shows works perfect for me. Thanx P1xt

1 Like