# Random Quote Woes

**URL:** <https://forum.freecodecamp.org/t/random-quote-woes/111240>\
**Category:** General\
**Created:** [May 1, 2017, 4:36pm UTC](https://forum.freecodecamp.org/t/random-quote-woes/111240 "2017-05-01T16:36:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![fullpruf](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/fullpruf/32/257856_2.png) [@fullpruf](https://forum.freecodecamp.org/u/fullpruf)\
**Post date:** [May 1, 2017, 4:36pm UTC](https://forum.freecodecamp.org/t/random-quote-woes/111240/1 "2017-05-01T16:36:21Z")

</div>

> **[Regula Jr.](https://codepen.io/fullpruf/pen/mmRyRK?editors=1010)**
>
> ...

I can’t seem to get a new quote to load. I’m trying to use an API because I figured it would be good for me to understand how they work. Can someone please take a look and tell me where I’ve derailed?  
Thank you so much

---

<div class="post-metadata">

**Author:** ![honmanyau](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/honmanyau/32/45787_2.png) [@honmanyau](https://forum.freecodecamp.org/u/honmanyau)\
**Post date:** [May 1, 2017, 4:51pm UTC](https://forum.freecodecamp.org/t/random-quote-woes/111240/2 "2017-05-01T16:51:52Z")

</div>

Haiiyo!

If I’m not mistaken you don’t have jQuery enabled for your project at all. Also, I think the API URL is currently wrong (it seems like you may have forgotten to delete another URL that in a code snippet):

```auto
https://crossorigin.me/http://api.forismatic.com/api/1.0/?method=getQuote&lang=en&format=jsonp&jsonp=?

```

I could get new quotes after making those changes. Good luck! 🙂

---

<div class="post-metadata">

**Author:** ![NaoG](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/naog/32/80690_2.png) [@NaoG](https://forum.freecodecamp.org/u/NaoG)\
**Post date:** [May 1, 2017, 5:06pm UTC](https://forum.freecodecamp.org/t/random-quote-woes/111240/3 "2017-05-01T17:06:01Z")

</div>

Yeah you definitely need to go into your settings and enable jQuery under the javascript setting.

Also as a side note, you can put the style links you have in the head of your html in the settings as well. You can either put them as is in the header info under the html settings tab, or in the css links.

As for getting another quote, enabling jQuery and taking off the crossoriginme prefix, I do see the call being made in the console. However its giving a MIME error, and I dont know how to fix that.

When I did mine, I ended up using .Ajax() instead of getJSON .

sorry, I cant be of more help.

if you want to take a look at mine let me know ill drop the link, sometimes it can be helpful, sometimes not though, LOL.

- Nao

---

<div class="post-metadata">

**Author:** ![fullpruf](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/fullpruf/32/257856_2.png) [@fullpruf](https://forum.freecodecamp.org/u/fullpruf)\
**Post date:** [May 1, 2017, 6:04pm UTC](https://forum.freecodecamp.org/t/random-quote-woes/111240/4 "2017-05-01T18:04:23Z")

</div>

I totally forgot about enabling jquery. thanks for that  
I also removed the [crossorigin.me](http://crossorigin.me), but i still cant seem to get it to work.

---

<div class="post-metadata">

**Author:** ![fullpruf](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/fullpruf/32/257856_2.png) [@fullpruf](https://forum.freecodecamp.org/u/fullpruf)\
**Post date:** [May 1, 2017, 6:05pm UTC](https://forum.freecodecamp.org/t/random-quote-woes/111240/5 "2017-05-01T18:05:32Z")

</div>

I would love to see yours. I’ve been looking through other peoples to see if I can decipher their code and figure out what i’m doing wrong.  
Thanks

---

<div class="post-metadata">

**Author:** ![NaoG](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/naog/32/80690_2.png) [@NaoG](https://forum.freecodecamp.org/u/NaoG)\
**Post date:** [May 1, 2017, 6:10pm UTC](https://forum.freecodecamp.org/t/random-quote-woes/111240/6 "2017-05-01T18:10:21Z")

</div>

@fullpruf no problem.

I did the same thing trying to figure out how to do the api.

[https://codepen.io/Ngoldberg/full/GmJZpX/](https://codepen.io/Ngoldberg/full/GmJZpX/)

---

<div class="post-metadata">

**Author:** ![rbuxx](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/rbuxx/32/47239_2.png) [@rbuxx](https://forum.freecodecamp.org/u/rbuxx)\
**Post date:** [May 1, 2017, 10:19pm UTC](https://forum.freecodecamp.org/t/random-quote-woes/111240/7 "2017-05-01T22:19:43Z")

</div>

@fullpruf you might wanna choose a new API as the forismatic one is no longer supported (which is why your quotes won’t show up). Here’s a [link](https://forum.freecodecamp.com/t/random-quote-generator-mime-type-error/108787) to the thread that alerted me about this. I chose to use that API too until it stopped working, but I’m using the Quotzzy API for my QuoteGen now and it works just fine. 🙂 Good luck!

---

<div class="post-metadata">

**Author:** ![jamesperrin](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jamesperrin/32/158725_2.png) [@jamesperrin](https://forum.freecodecamp.org/u/jamesperrin)\
**Post date:** [May 2, 2017, 3:32am UTC](https://forum.freecodecamp.org/t/random-quote-woes/111240/8 "2017-05-02T03:32:39Z")

</div>

Try using this [Random quotes API](https://market.mashape.com/kashyap32/random-quotes), it works without issues . You will need to signup for an API key.

---

<div class="post-metadata">

**Author:** ![fullpruf](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/fullpruf/32/257856_2.png) [@fullpruf](https://forum.freecodecamp.org/u/fullpruf)\
**Post date:** [May 2, 2017, 1:20pm UTC](https://forum.freecodecamp.org/t/random-quote-woes/111240/9 "2017-05-02T13:20:08Z")

</div>

Thanks for the help everyone. I finally got it working. My CSS doesn’t seem to be applying to the quote anymore, but that I will deal with later. Appreciate everyone taking their time to assist. 🙂

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:57pm UTC](https://forum.freecodecamp.org/t/random-quote-woes/111240/10 "2021-01-17T20:57:09Z")

</div>

Closed on January 17, 2021, 8:57pm UTC


