Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stockticker

Status
Not open for further replies.

mikeyzc

Programmer
Sep 26, 2001
4
US
Where could I find a javascript for a stockticker?
 
This is javascript but maybe it will be useful to you.

<---- Go here first and understand how the INET object works.

Then: in your asp page


<%
set objInetTransCtrl = Server.CreateObject(&quot;Project1.Class1&quot;)

x = (ticker symbol)
str1 = objInetTransCtrl.OpenURL(&quot; 'substitute your URL here

that gives you a long string of comma separated values

str2 = replace(str1, chr(34), &quot;&quot;)
(trims spaces)
str2a = replace(str2, &quot;,&quot; , vbtab)
(replaces comma with tab)
str3 = split(str2a, vbtab)
(makes an array with values in that string)

str3 is the array
str3(0) is symbol letters
str3(1) is current price
str3(4) is the up/down of the day.

Remember all quotes are delayed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top