Results 1 to 4 of 4

Thread: Webpage: Live stock price (using javascript?)

  1. #1
    Member
    Join Date
    May 2004
    Location
    Bristol
    Posts
    130
    Thanks
    0
    Thanked
    0 times in 0 posts

    Webpage: Live stock price (using javascript?)

    Hi,

    I am trying to write a webpage that displays the stock price for a company, and can update it without refreshing the page.

    I can use Javascript to refresh the text on the page by running an update function at a set interval. However, I want to get some stock data at a fixed interval (yahoo provide the data in a CSV file on their website e.g. here ).

    The problem is getting the page to download the data in the background in order to parse it; if I open the URL in an "invisible" frame it brings up a dialog asking if I want to save the .csv file.

    Is there any way I can get javscript to open the .csv as a plain text file in a frame and then access the text in the document? Or am I trying something beyond what can be done with client-side scripting?

    (PS - I would like to keep this processed client-side if poss)

  2. #2
    www.5lab.co.uk
    Join Date
    Sep 2003
    Posts
    6,406
    Thanks
    1
    Thanked
    0 times in 0 posts
    you could do it all in java fairly easily i would think, but i'm not sure if javascript can do that..
    hughlunnon@yahoo.com | I have sigs turned off..

  3. #3
    Registered+
    Join Date
    Aug 2005
    Location
    London
    Posts
    44
    Thanks
    0
    Thanked
    0 times in 0 posts
    http://www.lightstreamer.com/

    They do pretty much what it is you want to do. I've used their product first hand and it is very good indeed. I think it costs a fair bit though.

  4. #4
    Member
    Join Date
    May 2004
    Location
    Bristol
    Posts
    130
    Thanks
    0
    Thanked
    0 times in 0 posts
    Thanks... I'll look into it

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Ebuyer free shipping on cases + weekly bargain list to follow
    By Rave in forum Retail Therapy and Bargains
    Replies: 19
    Last Post: 22-06-2004, 11:10 AM
  2. Ebuyer weekend specials
    By Rave in forum Retail Therapy and Bargains
    Replies: 1
    Last Post: 13-06-2004, 11:12 AM
  3. Ebuyer free shipping on flash memory + other offers
    By Rave in forum Retail Therapy and Bargains
    Replies: 9
    Last Post: 03-06-2004, 08:10 PM
  4. Ebuyer deals (free shipping on some flash media)
    By dkmech in forum Retail Therapy and Bargains
    Replies: 1
    Last Post: 03-06-2004, 04:40 PM
  5. Price Check :: SoundBlaster Live! 1024
    By Jonny M in forum PC Hardware and Components
    Replies: 1
    Last Post: 19-03-2004, 09:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •