#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    342
    Rep Power
    12

    grab info from other site


    I'm trying to grab the info and put it on my site but i get this error
    Server object error 'ASP 0177 : 800401f3'
    Server.CreateObject Failed
    /yahoo.asp, line 5

    I think it has something missing with InetCtls.Inet

    Code:
        <%
        Dim objInet , strURL , strOpen
        'create an instance of inet transfer con
        '     trol
        Set objInet = Server.CreateObject("InetCtls.Inet")
        'this is our page , in this case the sym
        '     bol is msft (Microsoft)
        strURL ="http://finance.yahoo.com/q?s=msft&d=c&k=c4"
        'set th etimeout value
        objInet.RequestTimeout = 40
        'set the url to strURL
        objInet.Url = strURL
        'download the page
        strOpen = objInet.OpenUrl
        'our starting point the page
        startPoint= InStr( strOpen, "<BIG>Chart: </BIG>" ) 
        'our end point on the page
        endPoint = InStr( startPoint, strOpen, "Add To My Portfolio</A>" )
        'store it all in the variable strYahoo
        strYahoo = Mid( strOpen, startPoint, endPoint-startPoint )
        'clear up
        Set objInet = nothing
        %>
        <%= strYahoo%>
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    342
    Rep Power
    12
    am i suppose to have Visual basic installed? If so, is there another way to get InetCtls.Inet on my server without installing Visual Basic?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    342
    Rep Power
    12
    thanks, but i don't know how to write program though.
    What am i trying to do is to grab the specific stock quotes or news from other websites and put into my site.

IMN logo majestic logo threadwatch logo seochat tools logo