Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Need help getting jQuery to run in CodePen!

  • This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #242213
    Jesse989
    Participant

    Hello all,

    I wrote this random quote generator for freeCodeCamp and it works perfectly on the local system but as soon as I put it into CodePen (which is required for the project) it stops working.

    Any advice would be great, I have spent several days now trying to figure out how to fix it and I still do not know.

    https://codepen.io/Jesse989/pen/XKWdxO

    Thank you!

    #242215
    Paulie_D
    Member

    You linked in JQuery UI but not the core Jquery

    http://codepen.io/Paulie-D/pen/YWzeez

    #242216
    Jesse989
    Participant

    Thanks Paulie. I started out with both linked in there but it wasn’t working so I tried just one then the other but it still did not work.
    I just added the regular jQuery but it still is not working.

    #242217
    Paulie_D
    Member

    Seems to be when I click the Get Quote button.

    Exactly what do you mean by “Not Working”?

    #242218
    Jesse989
    Participant

    The click function should retrieve a new quote.
    If it works for you though that is even more confusing!

    #242219
    Paulie_D
    Member

    Does my Codepen work for you?

    #242220
    Jesse989
    Participant

    Not in the thumbnail but when I go to the site it does!!
    What did you have to do??

    #242223
    I.m.learning
    Participant

    Both your pens work but it looks better when changing famil to family

    <link href="https://fonts.googleapis.com/css?famil=Lobster" rel="stylesheet" type="text/css"/>
    

    EDIT: by the way, we had this issue before…there is a security issue when embedding pens in the forum. I use IE and I get a message stating “Only secure content is shown” and I have to click the button to view all content.

    I know others have stated this, but seems to be a constant issue with some pens.

    #242224
    Jesse989
    Participant

    Okay weird. When I open Paulie’s it works, then I open mine and it works. If I mess with mine though it stops working until I click on Paulie’s again.

    #242225
    I.m.learning
    Participant

    I’m not a fan of Codepen; but I been using this site for some time and remember people saying they don’t work for some reason. When I open some pages IE states security issues. Beverly had made a post some time ago (maybe 2-3 weeks) and stated how to change settings in FF or Chrome that needed to be changed.

    I know if you open these pages in IE that display a message about Secure Content and you do not click “View all content” before the alert closes; you need to reload the page to view the pens.

    I never heard about one not working until clicking another. I’m not sure how Codepen works so I don’t know if you change the pen, if the link to the pen changes as well. I thought maybe you fixed the issue–
    Your pen didn’t work until I changed your misspelled family. But then I had checked Paulies and it worked. I then closed and reopened both your pens, without changing anything, they both worked.

    I love technology, it makes out life so much funner! I love my host (name.com); they had changed my encoding and after I comaplined, they fixed the issue. But it taed 7 seconds to display a space. I have to use my local environment, and then upload to my server.

    So, did you fix your issue?

    #242249
    Jesse989
    Participant

    Yes it is fixed now, thank you. I just learned you can change it from https to non ssl and it will prevent it from working (you just change it in the address bar). I am not sure if that is what it was but I know when I turn ssl off it works (probably because the JSON call only works with regular http).

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.