Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » swt browser don't download and display images
swt browser don't download and display images [message #558937] Wed, 15 September 2010 03:17 Go to next message
LiLi Mising name is currently offline LiLi Mising nameFriend
Messages: 15
Registered: February 2010
Junior Member
I want to use it as a crawler that can deal with javascript. but it will download many other files such as jpg files. Is there any method to stop download image files to save bandwidth? thanks.
Re: swt browser don't download and display images [message #560198 is a reply to message #558937] Tue, 21 September 2010 14:11 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member

There isn't a way to make SWT.NONE-style Browsers do this.

It is probably possible to achieve this with SWT.MOZILLA-style Browsers via JavaXPCOM, since this can be done in stand-alone Firefox (Tools > Options > Content page > "Load Images Automatically"). However I'm not sure how they do it under the covers, so you probably need to have a look in their source, unless a google search finds you an answer more directly.

For info on using JavaXPCOM with the Browser see . And there are some example snippets, see the last six links in the "Browser" section of .

Previous Topic:Insert Text in Editor
Goto Forum:

Current Time: Sat Dec 14 22:00:46 GMT 2019

Powered by FUDForum. Page generated in 0.01345 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top