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)


LinkBack URL
About LinkBacks
Reply With Quote