🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
4 messages
4 total messages Started by Elisabeth Kvarnryd Tue, 27 Feb 2007 10:45
Is it possible to manipulate the TCppWebBrowser data
#307
Author: Elisabeth Kvarnryd
Date: Tue, 27 Feb 2007 10:45
22 lines
1763 bytes
Hello

Is it possible to maniplulate the incoming data with the TCppWebBrowser?
I only wan't use part of the webpage, so I contructed the following code:

  for (int f = 63; f < Memo1->Lines->Count - 34; f++)
  Memo2->Lines->Add(Memo1->Lines->Strings[f]);

Now it transfers the source code from one memo box to the other, but is it 
possible to do this when the page loads without using the boxes?
I could do it this way, but since some of the links on the webpage are: "<a 
href="page2.htm">, this will create an error404 when I click on them.

I hope someone can help me.

/Elisabeth

--------------------------------------------------------------------------------
Jag anv�nder en gratisversion av SPAMfighter f�r privata anv�ndare.
232 spam har blivit blockerade hittills.
Betalande anv�ndare har inte detta meddelande i sin e-post.
H�mta gratis SPAMfighter idag! 
Re: Is it possible to manipulate the TCppWebBrowser data
#308
Author: Remy Lebeau (TeamB)
Date: Tue, 27 Feb 2007 10:54
13 lines
1183 bytes
"Elisabeth Kvarnryd" <jesper@jptorrent.com> wrote in message
news:45e40ba5$1@newsgroups.borland.com...

> Is it possible to maniplulate the incoming data with the
TCppWebBrowser?

No.  You would have to download the data separately and then
manipulate it directly before loading it into the TCppWebBrowser
afterwards.


Gambit
Re: Is it possible to manipulate the TCppWebBrowser data
#309
Author: Elisabeth Kvarnryd
Date: Tue, 27 Feb 2007 12:02
16 lines
1543 bytes
> No.  You would have to download the data separately and then
> manipulate it directly before loading it into the TCppWebBrowser
> afterwards.

Ok, but if I do that some of he links will be broken? Is there a smart way 
to fix it or do I just have to create a parser and extract the important 
parts?

/E

--------------------------------------------------------------------------------
Jag anv�nder en gratisversion av SPAMfighter f�r privata anv�ndare.
232 spam har blivit blockerade hittills.
Betalande anv�ndare har inte detta meddelande i sin e-post.
H�mta gratis SPAMfighter idag! 
Re: Is it possible to manipulate the TCppWebBrowser data
#310
Author: Remy Lebeau (TeamB)
Date: Tue, 27 Feb 2007 18:05
10 lines
1291 bytes
"Elisabeth Kvarnryd" <jesper@jptorrent.com> wrote in message
news:45e41d8e$1@newsgroups.borland.com...

> do I just have to create a parser and extract the important parts?

Yes.


Gambit
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads