yuvalbra wrote on 03 aug 2007 in
microsoft.publi c.inetserver.as p.general:
On 3 , 17:30, "Evertjan." <exjxw.hannivo. ..@interxnl.net wrote:
>yuvalbra wrote on 03 aug 2007 in
microsoft.publ ic.inetserver.a sp.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.c om/q?s=MSFT"
Set objXMLHTTP = CreateObject("M icrosoft.XMLHTT P")
objXMLHTTP.open "GET",strUrlAdd ress, false
strURL, not strUrlAddress
objXMLHTTP.send
ProcessUrl = objXMLHTTP.Resp onseText
Set objXMLHTTP = Nothing
Set objXMLHTTP = Server.CreateOb ject("MSXML2.Se rverXMLHTTP")
Same error message!!!
Try this, works fine here:
========== test.asp =========
<%
strURL = "http://finance.yahoo.c om/q?s=MSFT"
Set objXMLHTTP = Server.CreateOb ject("MSXML2.Se rverXMLHTTP")
objXMLHTTP.open "GET",strUr l, false
objXMLHTTP.send
ProcessUrl = objXMLHTTP.Resp onseText
Set objXMLHTTP = Nothing
Set objXMLHTTP = Server.CreateOb ject("MSXML2.Se rverXMLHTTP")
%>
<%=ProcessUrl %>
=============== ===============
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)