Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pull HTML from an external site

Status
Not open for further replies.

RayWilson

Technical User
Nov 28, 2001
43
0
0
GB
Could anyone give me any hints on how to pull HTML elements from an external site? I have and external web page that contains information on various course we run. I have marked up important paragraphs in the page with DIV tags (and their own IDs).

With my main, internal, site I want to pull the data which is contained within these tags fromt he external page and display them. How could I go about parsing these HTML elements from the page?

Any information would be much appreciated!
 
Forgot to say I use ColdFusion version 5.
 
you'll have to use a combo of cfhttp and mid.

If they're your pages and you have access to them try putting the shared paragraphs in an included file. then CFinclude the paragraph on the site it is intended for, and use cfhttp to just get that page included paragraph on the remote site.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top