Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Jan : How to get content of browser window

www.cryer.info
Managed Newsgroup Archive

How to get content of browser window

Subject:How to get content of browser window
Posted by:"Greg Bullock" (borlandng_at_tsppd.com)
Date:Sun, 28 Jan 2007 20:14:21

I need some guidance on using Indy for a particular purpose.  I'm not even
sure if Indy is the appropriate tool for this.

My user needs to be able to browse around a web site (with, say, IE or
another browser) until he finds certain pages, then click a button in my app
to process the content of the currently-viewed web page.

I can imagine several ways to do this, but I'm not sure which one is best or
even whether they'd work at all.

(1) The app could query the user's browser window for the web page content,
or
(2) The app could query the user's browser window for the web page's URL,
then download the content using TIdHTTP (I suppose), or
(3) The app could provide it's own browser window so all it really has to do
is query itself for the content.

Would someone guide me on which of these options to prefer and give me some
tips on how to implement that option (for example, which Indy components to
use)?

Many thanks.
Greg

Replies:

www.cryer.info
Managed Newsgroup Archive