News & Quotes Ticker Applet |
||
Perfect stocks and RSS ticker for your website! |
||
|
More Java Applets
|
DOCS > Data Feeds
Applet reads data from URL specified in Quotes Feed Specification Applet calls the feed for each symbol like this: http://your-server.com/path-to-script/feed.php?symbols=MSFT This is done for each symbol, one after an other, until all list is done, and then it starts from the beginning. You can build your own data feeds as long as it responds
to symbol parameter with same output as below:
----START OUTPUT---- SYMBOL:MSFT LAST TIME:10:46am LAST:25.21 CHANGE:-0.17 CHANGEP:-0.67% BID:25.21 ASK:25.22 TREND:- ----END OUTPUT----
The sample script we provide for quotes is feed-quotes-random.php. Using this script you can see how to build your own data script to the data feed you will be using. HTML code for setting up 'feed' parameter for quotes version, looks like:
News Feed Specification News output is very simple: for each news one line is title and one is link to news. Sample output: ----START OUTPUT---- Paris Hotel Fire Kills at Least 20 People (AP) http://news.yahoo.com/........... Congress Passes Bankruptcy Reform Bill (AP) http://news.yahoo.com/........... ----END OUTPUT---- The script we provide for news is "news-rss.php" for PHP and "news-rss.asp" for ASP (JScript) HTML code for setting up 'feed' parameter for news version, looks like:
|
|
|
Java™ is a Trademark of Sun Microsystems, Inc
Copyright (c) 2008 by Anticariat Online LTD |
||