?
Solved

WebBrowser1 Disable Images within browser

Posted on 2009-04-26
9
Medium Priority
?
1,359 Views
1 Endorsement
Last Modified: 2012-05-06
Hi Experts, I'd like to know how I could disable images from loading within webbrowser1?

thanks,

1
Comment
Question by:eNarc
  • 4
  • 3
  • 2
9 Comments
 
LVL 5

Expert Comment

by:louislietaer
ID: 24236368
Are you trying to get only the html source ?
0
 
LVL 5

Author Comment

by:eNarc
ID: 24238085
Hi, no, just faster loading times :)

the images slow down the OnDocumentComplete,

if the images wouldn't load in the webbrowser then it would load much faster :) and thats what I'm after.

faster loading within the webbrowser where the images don't load or download.
0
 
LVL 5

Expert Comment

by:louislietaer
ID: 24239346
Ok,

I don't think Twebbrowser will provide the need.

There is a work arround by using a TidHTTP,
1) download the HTML Source
2 edit the <IMG> tags to replace the image name by a local image file.
3) save as a tmp file and open it with TwebBrowser

You may need also to convert relative path to full path in html downloaded source.

You can also explore other component I know :
TEmbeddedWB : http://www.bsalsa.com/
HtmlEdit not free by : http://www.purposesoft.com/

hope helps
0
Technology Partners: 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!

 
LVL 5

Author Comment

by:eNarc
ID: 24240240
Hi, I'm actually having trouble with tidhttp as the site needs cookies to stay logged in and for some reason I haven't a clue how to use cookies with tidhttp, I know that the cookie manager is needed, though adding a cookie into the manager, yea I've searched and there isn't much on cookies with tidhttp.
0
 
LVL 5

Expert Comment

by:louislietaer
ID: 24244381
hello eNarc,

Don't think you need to implement cookie manage. if you the url with a valid login/password (a bit tricky or if can register), I could write you the code.
0
 
LVL 5

Author Comment

by:eNarc
ID: 24245217
Hi, the registration is on http://www.ebay.co.uk/ do you have an ebay account? if not you can signup on there as its free :)

0
 
LVL 26

Accepted Solution

by:
Eddie Shipman earned 2000 total points
ID: 24245925
Sicne TWebbrowser uses IE for it's engine, you can turn off images in IE by modifying this registry key:

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
"Display Inline Images"="no"
0
 
LVL 5

Expert Comment

by:louislietaer
ID: 24245953
EddieShipman:
 nice one
0
 
LVL 26

Expert Comment

by:Eddie Shipman
ID: 24245965
Another option would be to  write a DownloadControl handler:
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/hosting/wbcustomization.asp

See: DLCTL_DLIMAGES

I have done that before, let me see if I can find the code.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
Integration Management Part 2
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

850 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