Link to home
Start Free TrialLog in
Avatar of eNarc
eNarcFlag for United Kingdom of Great Britain and Northern Ireland

asked on

WebBrowser1 Disable Images within browser

Hi Experts, I'd like to know how I could disable images from loading within webbrowser1?

thanks,

Avatar of Louis LIETAER
Louis LIETAER
Flag of France image

Are you trying to get only the html source ?
Avatar of eNarc

ASKER

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.
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
Avatar of eNarc

ASKER

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.
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.
Avatar of eNarc

ASKER

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 :)

ASKER CERTIFIED SOLUTION
Avatar of Eddie Shipman
Eddie Shipman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
EddieShipman:
 nice one
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.