Solved

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

Posted on 2001-09-04
6
397 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

749 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