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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Taking Excerpt From Another Page

Status
Not open for further replies.

zULuGriD

Programmer
Jan 28, 2001
1
US
Is it possible to take an excerpt from another page, for example, the current weather info from weather.com, and display it into your page? Not the entire page, but just an excerpt from it. Thanx.
 
You can use the <cfhttp> tag to download the page in question. The variable cfhttp.filecontent will then contain the entire text of the page. You can use the CF string functions such as find() and mid() to find pieces you are interested in and strip them out.

Just remember that most pages out there are copyrighted and you may be violating copyrights by retrieving and re-displaying content from other sites.

Good luck,
GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top