need to implement a stock quote using ASP ?

need to implement a stock quote using ASP ?

am 03.08.2007 11:27:25 von yuvalbra

Does anyone know how to implement a stock quote using ASP on a
website?
Any sample code or components, etc., would be appreciated.


I try this but got error 500 on page

strURL = "http://finance.yahoo.com/q?s=MSFT"
Set objXMLHTTP = CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.open "GET",strUrlAddress, false
objXMLHTTP.send
ProcessUrl = objXMLHTTP.ResponseText
Set objXMLHTTP = Nothing

B.R

Re: need to implement a stock quote using ASP ?

am 03.08.2007 16:30:11 von exjxw.hannivoort

yuvalbra wrote on 03 aug 2007 in microsoft.public.inetserver.asp.general:

> Does anyone know how to implement a stock quote using ASP on a
> website?
> Any sample code or components, etc., would be appreciated.
>
>
> I try this but got error 500 on page
>
> strURL = "http://finance.yahoo.com/q?s=MSFT"
> Set objXMLHTTP = CreateObject("Microsoft.XMLHTTP")
> objXMLHTTP.open "GET",strUrlAddress, false
> objXMLHTTP.send
> ProcessUrl = objXMLHTTP.ResponseText
> Set objXMLHTTP = Nothing

Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Re: need to implement a stock quote using ASP ?

am 03.08.2007 18:31:16 von yuvalbra

On 3 , 17:30, "Evertjan." wrote:
> yuvalbra wrote on 03 aug 2007 in microsoft.public.inetserver.asp.general:
>
> > Does anyone know how to implement a stock quote using ASP on a
> > website?
> > Any sample code or components, etc., would be appreciated.
>
> > I try this but got error 500 on page
>
> > strURL = "http://finance.yahoo.com/q?s=MSFT"
> > Set objXMLHTTP = CreateObject("Microsoft.XMLHTTP")
> > objXMLHTTP.open "GET",strUrlAddress, false
> > objXMLHTTP.send
> > ProcessUrl = objXMLHTTP.ResponseText
> > Set objXMLHTTP = Nothing
>
> Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)



Same error message!!!

Re: need to implement a stock quote using ASP ?

am 03.08.2007 20:05:41 von exjxw.hannivoort

yuvalbra wrote on 03 aug 2007 in
microsoft.public.inetserver.asp.general:

> On 3 , 17:30, "Evertjan." wrote:
>> yuvalbra wrote on 03 aug 2007 in
>> microsoft.public.inetserver.asp.general:
>>
>> > Does anyone know how to implement a stock quote using ASP on a
>> > website?
>> > Any sample code or components, etc., would be appreciated.
>>
>> > I try this but got error 500 on page

[Switch off friendly error messages in IE!]

>>
>> > strURL = "http://finance.yahoo.com/q?s=MSFT"
>> > Set objXMLHTTP = CreateObject("Microsoft.XMLHTTP")
>> > objXMLHTTP.open "GET",strUrlAddress, false

strURL, not strUrlAddress

>> > objXMLHTTP.send
>> > ProcessUrl = objXMLHTTP.ResponseText
>> > Set objXMLHTTP = Nothing
>>
>> Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
>>
> Same error message!!!

Try this, works fine here:

========== test.asp =========
<%
strURL = "http://finance.yahoo.com/q?s=MSFT"
Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
objXMLHTTP.open "GET",strUrl, false
objXMLHTTP.send
ProcessUrl = objXMLHTTP.ResponseText
Set objXMLHTTP = Nothing
Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
%>
<%=ProcessUrl%>
==============================



--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)