 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Daniel Hobert Guest
|
Posted: Mon Dec 20, 2004 7:45 pm Post subject: TWebBrowser - Can I change data on a webpage being retrieved |
|
|
Hi All,
I'm wondering if it is possible to change a webpage as it comes in if, for
example, it contains text/images, etc that are undesirable. I'd like to be
able to replace the undesirable text/images, etc with text/images of my own
but I can't seem to figure out how ... or more properly when, to do it. It
seems like doing it on OnDocumentComplete or OnDownloadComplete would be too
late because the data has already been downloaded for that piece of the
page.
Does anyone know if this is even possible?
Thanks.
Cheers,
Daniel Hobert
|
|
| Back to top |
|
 |
Andrew Ryazanov Guest
|
Posted: Tue Dec 21, 2004 10:02 pm Post subject: Re: TWebBrowser - Can I change data on a webpage being retri |
|
|
"Daniel Hobert" <daniel (AT) cyberspacehq (DOT) com> wrote
| Quote: | I'm wondering if it is possible to change a webpage as it comes in if, for
example, it contains text/images, etc that are undesirable. I'd like to
be
able to replace the undesirable text/images, etc with text/images of my
own
but I can't seem to figure out how ... or more properly when, to do it.
It
seems like doing it on OnDocumentComplete or OnDownloadComplete would be
too
late because the data has already been downloaded for that piece of the
page.
Does anyone know if this is even possible?
|
Yes, you can. Use IDocHostUIHandler.FilterDataObject from TEmbeddedWb
(http://www.euromind.com/iedelphi/)
|
|
| Back to top |
|
 |
Daniel Hobert Guest
|
Posted: Mon Jan 03, 2005 4:59 pm Post subject: Re: TWebBrowser - Can I change data on a webpage being retri |
|
|
Hi Andrew,
Thanks for the suggestion there. I'm going to look into it. Is there any
chance I could get you to expand on it's use a bit though?
Cheers,
Daniel Hobert
"Andrew Ryazanov" <aust (AT) rin (DOT) ru> wrote
| Quote: | "Daniel Hobert" <daniel (AT) cyberspacehq (DOT) com> wrote in message
news:41c72bc8$1 (AT) newsgroups (DOT) borland.com...
I'm wondering if it is possible to change a webpage as it comes in if,
for
example, it contains text/images, etc that are undesirable. I'd like to
be
able to replace the undesirable text/images, etc with text/images of my
own
but I can't seem to figure out how ... or more properly when, to do it.
It
seems like doing it on OnDocumentComplete or OnDownloadComplete would be
too
late because the data has already been downloaded for that piece of the
page.
Does anyone know if this is even possible?
Yes, you can. Use IDocHostUIHandler.FilterDataObject from TEmbeddedWb
(http://www.euromind.com/iedelphi/)
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|