Solved

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

Posted on 2001-09-04
6
401 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

690 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