Results 1 to 3 of 3

Thread: how to fetch external pages

  1. #1
    Join Date
    Sep 2006
    Posts
    204
    Thanks
    11
    Thanked 3 Times in 3 Posts

    Default how to fetch external pages

    Hi all
    I want to fetch and inclide a webpage so I do not have to keep updating it myself, the site is a football league table which gets updated weekly.

    How would I include http://full-time.thefa.com/TablePF.d...season=3946147 into one of my own webpages

    Cheers for your help

    Chet

  2. #2
    Join Date
    Apr 2006
    Location
    Amsterdam
    Posts
    350
    Thanks
    20
    Thanked 11 Times in 11 Posts

    Default

    The simplest way I can think of is using an iframe.

    You could also use the XMLHTTP Object to fetch data from another website. Here is a good article that helpt me alot using XMLHTTP: http://www.4guysfromrolla.com/webtech/110100-1.2.shtml

  3. #3
    Join Date
    May 2004
    Location
    NewYork, USA
    Posts
    175
    Thanks
    25
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by chet View Post
    Hi all
    I want to fetch and inclide a webpage so I do not have to keep updating it myself, the site is a football league table which gets updated weekly.

    How would I include http://full-time.thefa.com/TablePF.d...season=3946147 into one of my own webpages

    Cheers for your help

    Chet
    Hey try this


    PHP Code:
    <% 
     
    ' Intruduce the url you want to visit 
     GotothisURL = http://full-time.thefa.com/TablePF.do?divisionseason=3946147  
     ' 
    Create the xml object 
     Set GetConnection 
    CreateObject("Microsoft.XMLHTTP"
     
    ' Conect to specified URL 
     GetConnection.Open "get", GotothisURL, False 
     on error resume next 
     GetConnection.Send  
     ' 
    ResponsePage is the response we will get when visiting GotothisURL 
     ResponsePage 
    GetConnection.responseText 
    ' We will write  
    if ResponsePage="" then  
    Response.write("The page is not available") 
    else 
    Response.write(ResponsePage) 
    end if 
     Set GetConnection = Nothing 
     %> 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to send mail with MX pointing to external server?
    By Jaro in forum Technical Support
    Replies: 2
    Last Post: 18th July 2008, 07:12 AM
  2. External Web Request Timeouts
    By garazy in forum Technical Support
    Replies: 1
    Last Post: 3rd December 2007, 02:14 AM
  3. Yellow pages
    By Jaro in forum Portal/CMS Applications
    Replies: 2
    Last Post: 29th December 2005, 12:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •