Sep 26, 2001 #1 mikeyzc Programmer Sep 26, 2001 4 US Where could I find a javascript for a stockticker?
Sep 26, 2001 #2 jewel464g Technical User Jul 18, 2001 198 US This is javascript but maybe it will be useful to you. http://support.microsoft.com/support/kb/articles/Q216/2/88.ASP <---- Go here first and understand how the INET object works. Then: in your asp page <% set objInetTransCtrl = Server.CreateObject("Project1.Class1" x = (ticker symbol) str1 = objInetTransCtrl.OpenURL("http://204.71.203.156/d/quotes.csv?s=x&f=sl1d1t1c1ohgv&e=.csv") 'substitute your URL here that gives you a long string of comma separated values str2 = replace(str1, chr(34), "" (trims spaces) str2a = replace(str2, "," , 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 Upvote 0 Downvote
This is javascript but maybe it will be useful to you. http://support.microsoft.com/support/kb/articles/Q216/2/88.ASP <---- Go here first and understand how the INET object works. Then: in your asp page <% set objInetTransCtrl = Server.CreateObject("Project1.Class1" x = (ticker symbol) str1 = objInetTransCtrl.OpenURL("http://204.71.203.156/d/quotes.csv?s=x&f=sl1d1t1c1ohgv&e=.csv") 'substitute your URL here that gives you a long string of comma separated values str2 = replace(str1, chr(34), "" (trims spaces) str2a = replace(str2, "," , 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