473,471 Members | 4,687 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Stock Ticker

2 New Member
At work we have a couple flat screens that display news and current stock info. About a week ago it stopped displaying the marquee for the stock info.

Curious if anyone had any suggestions on what might of changed.
Perhaps something changed at yahoo,,,,

Stock symbol changed to protect my identity :)

Thanks
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <META HTTP-EQUIV=Refresh CONTENT="60; URL=bottom.asp"> 
  4. <script> 
  5. function getQuote()
  6. {
  7.   var Symbols="FO"
  8.  
  9.   var x = new ActiveXObject("MSXML2.XMLHTTP");
  10.   arSymbols=Symbols.split(" ");
  11.   var theQuotes="";
  12.   x.Open("GET","http://finance.yahoo.com/d/quotes.csv?s=" + Symbols+"&f=sl1d1t1c1ohgv&e=.txt", false);
  13.   x.Send();
  14.   theQuotes=x.ResponseText;
  15.     theQuotes= theQuotes.replace(/"/g,""); // remove double quotes
  16.  
  17.  
  18.   var arQuoteLines=theQuotes.split("\n")
  19.   var finalString="";
  20.   var arTempLine=null; 
  21.  
  22.  
  23.   var tmpString="";
  24.   for(var i=0;i<arQuoteLines.length-1;i++)
  25.   {
  26.     arTempLine=arQuoteLines[i].split(",");
  27.     tmpString+='My stock $' + arTempLine[2];
  28.   }
  29.  
  30.   showQuotes.innerHTML=tmpString ;
  31. }
  32.  
  33. </script>
  34. <title>None</title>
  35. <style>
  36. <%
  37. response.write "table{font-family: verdana, arial, sans-serif; font-size:22pt; color:'#ffffff'; background-color:'#000000'}"
  38. response.write "input{font-family: verdana, arial, sans-serif; font-size:24pt; color:'#ffffff'; background-color:'#000000'}"
  39.  
  40. response.write "</style>"
  41. response.write "</head>"
  42. response.write "<body onload='getQuote();'>"
  43.  
  44. response.write "<table  width='100%' height='100%'border=0><tr>" 
  45. Response.Write "<tr class=Color1>"
  46.  
  47. Response.Write "<td align=left width='1%'>"
  48. Response.Write "</td>"
  49. Response.Write "<td align=left width='55%'>"
  50. Response.Write "<b>"
  51. response.write FormatDateTime(Date, 1) & "   " & left(Time, len(time) -6) & right(time, 2)
  52. Response.Write "</b>"
  53.  
  54. Response.Write "</td>"
  55.  
  56. Response.Write "<td align=right width='43%'>"
  57. Response.Write "<marquee id=showQuotes></marquee>"
  58.  
  59. Response.Write "</td>"
  60.  
  61. response.write "</tr>"
  62. response.write "</table>"
  63. %>
  64. </body></html>
  65.  
Sep 13 '07 #1
2 2544
melvin74
2 New Member
Nevermind i got it. Looks like yahoo changed the order of the information and where it was coming from.

Worked with download.finance etc.
Sep 13 '07 #2
NikolaiM
1 New Member
There are companies who specialize in providing financial content for websites. For example, AlphaTrade E-Trax. Stock market information for websites may have real time streaming stock quotes, market news, company news and events. As an option they provide stock charts, currency converter, option chains, etc.
Aug 14 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Bill | last post by:
Anyone know of an ASP application that will provide me with stock data for a specific ticker symbol? Of course, a free app would be nice, but I'd consider something I have to pay for. I'd prefer...
4
by: dthelwal | last post by:
I'm looking for an applet or script to feed from an RSS page (perhaps RSS 0.91) and turn its <title> and <link> entries (perhaps using <description> as well) into a scrolling news ticker where the...
3
by: Dan | last post by:
Hi Does anyone know of a good Javascript typewriter ticker that allows you to insert HTML into the ticker. I have found lots but when HTML is inserted, the ticker pauses at the point it reaches...
2
by: rohan ranade | last post by:
Hi. I want to create a ticker similare to the one shown on CNBC. Can someone tell me a flicker free way to do it?
1
by: David | last post by:
Hi, I have the following asp in my page, but I keep getting the following error Microsoft VBScript runtime error '800a0009' Subscript out of range: 'ticker' Please can you help me ?. Here...
2
by: Phillip Vong | last post by:
I'm new at this. Anybody know where I can find out how to pull stock quotes from the Nasdaq site into my ASP site? I want my users to enter a ticker in one Textbox1 ex. MSFT and another...
7
by: Donlingerfelt | last post by:
I would like to download stock quotes from the web, store them, do calculations and sort the results. However I am fairly new and don't have a clue how to parse the results of a web page download....
2
by: Rathorevivek | last post by:
Hi All, I am working on a financial website. I have to use real time stock quotes ticker(in Marquee format) for that.The stock exchange for which i want to extract the stock details is NSE(India)...
13
by: RommelTJ | last post by:
Hi, My website (http://www.justiceinmexico.org/indextest.php) looks good in Firefox, but horrible in IE, and I think it's because of an error in the javascript of a free web ticker I got off the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.