eNarc
asked on
WebBrowser1 Disable Images within browser
Hi Experts, I'd like to know how I could disable images from loading within webbrowser1?
thanks,
thanks,
Are you trying to get only the html source ?
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.
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
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
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.
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
EddieShipman:
nice one
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.
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.