I am trying to get a javascript stock ticker to work, it is going well but my knowledge of javascript is at a beginner level.
The current code (top example) pulls out live stock data using the google finance API. It checks to see the stock acronym and prints the full company name and has some various styling.
The second part is a attempt to get the data displaying in a table format, the columns work but i cant get the jquery to populate the final column with the live date :(.
I need to create 3 columns; 1 for the stock name eg (HAULOTTE), one for the stock acroynm eg (PIG) and one for the live stock figures. This will ensure each stock data row keeps parallel with the one above and below it.
Attached is the current jsfiddle:
Thanks for any help.
https://jsfiddle.net/oqousaLw/
<div class="haul" data-symbol="PIG" data-title="HAULOTTE"></div>
<div class="ashtead" data-symbol="AHT" data-title="ASHTEAD"></div>
<div class="united" data-symbol="URI" data-title="UNITED RENTALS"></div>
<div class="terex" data-symbol="TEX" data-title="TEREX"></div>
<div class="cat" data-symbol="CAT" data-title="CATERPILLER"></div>
<div class="hees" data-symbol="HEES" data-title="H&E EQUIPMENT"></div>
<div class="pal" data-symbol="PAL" data-title="PALFINGER "></div>
<br>
<br>
<b>Replicate above code but in table format. cant get live data to appear</b>
<br>
<br>
<div class="box">
<div class="floatleft2 " style="padding:5px;">
<div>HAULOTTE</div>
<div>ASHTEAD</div>
<div>UNITED RENTALS</div>
<div>TEREX</div>
</div>
<div class="stockSymbolnew" style="padding:5px;">
<div><b>PIG</b></div>
<div><b>AHT</b></div>
<div><b>URI</b></div>
<div><b>TEX</b></div>
</div>
<div class="floatleft2" style="padding:5px;">
<div><i>GET live data</i></div>
<div><i>GET live data</i></div>
<div><i>GET live data</i></div>
<div><i>GET live data</i></div>
</div>
</div>