View Single Post
  #1 (permalink)  
Old 05-14-2008, 04:36 PM
Minti Minti is offline
Newbie
 
Join Date: May 2008
Posts: 3
Rep Power: 0
Minti is on a distinguished road
Default Displaying stock price

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>
This is calling a javascript file.

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
Reply With Quote

Sponsored Links