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

Pulling info from an HTML page

Status
Not open for further replies.

lucidity23

Programmer
Feb 14, 2001
99
US
I am wondering if it is possible to open an html page and just pull certain info from the text of the file. However I do not want the page to open infront of the user. I would like it dne behind the scenes. Is this possible?

Any sort of guidance is welcome.
- carpe diem -
 
Could you please be a little more specific??

What file are you trying to pull text from?? a .txt file?? the same html file?? a database??

And when you say you don't wanna do it 'in front' of the user... are you saying that you don't want any html to be written to the browser that shows them what you are doing???

 
it is an html file. This file is pulling info from a database. I want to simply access the HTML file though. I do not want the user to see the HTML page I am accessing. I want them to simply see the information I have written to the browser which will include some of the info I am pulling from the HTML page. I do not want the user to see what is being done, except for what I have written to the broswer.
- carpe diem -
 
You're probably not just using HTML, right? If you're accessing a database you're using code of some kind, probably ASP since you're posting here. If you're writing the code of the page that your users are requesting, you already have control over what information is returned to them.

My other guess at what you're asking is that you want your script page to request an external html page and parse it for specific information. That's a legitimate question.

You need to create an ADO Stream object to obtain and hold the HTML page. The Stream.Open method will accept the URL of the page you want and you can use the ReadText method to move through the file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top