Solved

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

Posted on 2001-09-04
6
386 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 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

13 Experts available now in Live!

Get 1:1 Help Now