Grow your CSS skills. Land your dream job.

Simple Stock Quote Option

  • # July 8, 2012 at 11:33 pm

    Hey everyone,
    I have been fighting with this problem for a few months now and still can not find an option that I am able to get to work properly.
    Does anyone know of a way to display a companies stock price? I have found a few but cant get them to work as I need it to use javascript not php
    Thanks ,
    Chris

    # July 9, 2012 at 12:37 am

    Ok so I am trying to get the http://stackoverflow.com/questions/5150040/stock-quotes-with-javascript example to work. Are you able to get it working for me in a jsfiddle?


    # July 12, 2012 at 11:40 pm

    Thanks for putting it into a codepen for me. I am searching the code and can not find where I can change the stock symbol. I need it to find PRW which is Petrowest Corporation.

    # July 13, 2012 at 12:01 am

    Looks like you’ll need to use PRW.TO for the symbol: http://codepen.io/ggilmore/pen/single-stock-price/14

    I’m guessing because it’s on the TSE, so ‘TO’ for Toronto.

    # July 13, 2012 at 12:11 am

    Great! You bet it does need the .TO so thanks for adding that. So close to finally getting this stock ticker up on the site haha

    # July 13, 2012 at 12:16 am

    haha I know what you mean! I actually had to dig really deep into the Yahoo Finance stuff to make any sense of their crazy YQL language. It took a lot of trial and error!

    # July 13, 2012 at 12:19 am

    haha Well I do really appreciate you spending some time and looking into it for me. Thanks again!

    # July 20, 2012 at 4:38 pm

    @TheDoc well the stock ticker works awesome! only one little problem… haha not working on Internet Explorer. Any idea on how to fix this or should I look at buying one. http://petrowest.squarespace.com/home/

    # July 20, 2012 at 4:44 pm

    Hmmmm… very odd. I’ll try to have a look soon.

    # July 20, 2012 at 5:45 pm

    ok that would be awesome! Thank you

    # July 20, 2012 at 5:56 pm

    I’m not sure if I’ll be able to properly debug it soon. For something like this, I like posting a question up on Stackoverflow.

    # July 20, 2012 at 6:43 pm

    Ok sounds good Ill try and post it on Stackoverflow and see if I get a response.

    # July 31, 2012 at 2:32 am

    Can anyone see a way to get rid of the “Ads by Google, Stock Quotes, Shares Stock” on my stock ticker? I did have it gone for a minute and then things showed up again.

    .gadget img { display:none !important;}
    .gadget .powered { display:none !important;}
    #abg { display:none !important;}
    .al .alt, .al a {display:none !important;}

    http://petrowest.squarespace.com/home/

Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".