Dec 16, 2009 #1 wu78754 Programmer Joined Nov 6, 2009 Messages 12 Location US How do you get stock quote from the client side (javascript)? Here is the PHP (server side) version $file = fopen("http://finance.yahoo.com/d/quotes.csv?s=IBM&f=noc1&ex=.csv", "r"); $stocks = fgetcsv($file);
How do you get stock quote from the client side (javascript)? Here is the PHP (server side) version $file = fopen("http://finance.yahoo.com/d/quotes.csv?s=IBM&f=noc1&ex=.csv", "r"); $stocks = fgetcsv($file);
Dec 16, 2009 #2 Diancecht Programmer Joined Jan 8, 2004 Messages 4,042 Location ES It depends on what you want to do with it Cheers, Dian Upvote 0 Downvote
Dec 17, 2009 Thread starter #3 wu78754 Programmer Joined Nov 6, 2009 Messages 12 Location US An example of getting stock quote of 'AA' every second would be nice. Last Trade: 14.90 Trade Time: xxxxxxxx Upvote 0 Downvote
An example of getting stock quote of 'AA' every second would be nice. Last Trade: 14.90 Trade Time: xxxxxxxx
Dec 17, 2009 #4 Diancecht Programmer Joined Jan 8, 2004 Messages 4,042 Location ES Easiest way I can think now is using and iframe that will have that URL in html format and refresh it woth setTimeout function. Cheers, Dian Upvote 0 Downvote
Easiest way I can think now is using and iframe that will have that URL in html format and refresh it woth setTimeout function. Cheers, Dian