Solved

Saving web-content with WebBrowser via cache... ?

Posted on 2001-09-04
6
389 Views
Last Modified: 2012-06-27
Hi !
I'm working with Delphi 5 Enterprise (engl.version), WinNT 4.0 and Win98se.
I've built a small webbrowser (with your help ;-) ...
Now i've the idea to read the web-content offline. So i begin with a downloadbutton and...
----------------
function DownloadFile(SourceFile, DestFile: string): Boolean;
begin
  try
     Result := UrlDownloadToFile(nil, PChar(SourceFile), PChar(DestFile), 0, nil) = 0;
    except
     Result := False;
  end;
end;
-----------------
If the web-content is built via script (...asp?123...) this isn't a solution. Now i've the idea that the whole webcontent should be in my browser-cache ... The best: Without seeing it before ;-)
Then i can read all with
WebBrowser1.Offline := True ...
How can i do this?
Are there any solutions, tips or tricks?
Thanks a lot!

Best regards,
Ingo

BTW: 110 points is all i have ;-)
0
Comment
Question by:Ogni
  • 3
  • 2
6 Comments
 
LVL 26

Accepted Solution

by:
EddieShipman earned 110 total points
ID: 6453926
You can get the full HTML source of the URL, even if it
is created by scripting(ASP,JSP) by using the technique at
this link:

http://members.home.com/hfournier/webbrowser.htm#advanced8
0
 

Author Comment

by:Ogni
ID: 6455704
Hi Eddie,
thanks a lot... i'll still wait a bit... It's a good answer but... Perhaps i still get an answer 'cause of "automatic saving to cache" or so...?!
If there comes nothing you get the points ;-)
Best regards,
Ingo
0
 
LVL 26

Expert Comment

by:EddieShipman
ID: 6470345
It is better to get it straight from the webbrowser
instead of from the cache. The cache may not contain the
latest version of the document due to the user's internet
options settings.


0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Expert Comment

by:antenor
ID: 12714703
hello EdieShipman !

I had a same problem ... and a link
http://members.home.com/hfournier/webbrowser.htm#advanced8 

do not work ...  :(

do you help me?

Tanks
0
 
LVL 26

Expert Comment

by:EddieShipman
ID: 12715829
Henri has since changed his site to:
http://www.members.shaw.ca/iedelphi/

0
 

Expert Comment

by:antenor
ID: 12715997
ok EddieShipman.

Tank U.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Is it possible to connect Database from Mobile APK to Website MySQL 3 66
Delphi selector screen 2 70
Reconfigure Delphi Install? 2 47
SUM 2 INTEGER ARRAYS INTO 1 10 93
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now