|
||||||
| JavaScript and CSS Extensible Markup Language, Java Script, and CSS questions here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hi there,
I am currently trying to get the stock price to display on a webpage and have it refresh every 5 minutes. I am a bit of a newbie to programming so i have been given some sample code and guidelines. First of all i have the html page: HTML Code:
<html xmlns:v="urn:schemas-microsoft-com:vml"> <head> <title>Default</title> <link rel="stylesheet" type="text/css" href="csse.css" /> <script language="JavaScript" type="text/javascript" src="jse.js"></script> </head> <body onLoad="loadPrice()"> <div id="HTMLResults"></div> </body> </html> Now i need some help on how to write a javascript function in a seperate file that queries a url that i have been given. "Please see second post below" And return and display the symbol and the stock price. Also how would i go about getting it to refresh every five minutes? Any help with this would be greatly appreciated. Cheers for taking the time to read this. Minty Last edited by Jordan; 05-14-2008 at 04:44 PM. Reason: Added code tags |
| Sponsored Links |
|
|
|
|||
|
Stock price URL:
http://products.stockpoint.com/servl...es?symbols=gsk |
|
|||||
|
To display the symbol you would just need to do:
HTML Code:
document.write(quote[0]); HTML Code:
<meta http-equiv="refresh" content="600">
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
|
|||
|
Cheers for the reply.
A few questions First of all how would i also display the stock price from that link. And for the refresh i know i have shown a full html page but how i am actually going to do it is so that a section of a div refreshes therefore i need it to be done through javascript. So is the link you gave able to do this for me or should i be looking at something else? Taa |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|